Compare commits
11 Commits
1fb4728b0a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33680209ba | ||
|
|
f70ea4229a | ||
|
|
acadc9faee | ||
|
|
f725ec88f9 | ||
|
|
8d34b93527 | ||
|
|
918cfe06e4 | ||
|
|
e2f276e65b | ||
| 52353ec1fb | |||
|
|
750877db1a | ||
|
|
a18337d0f8 | ||
|
|
6f45a60030 |
@@ -4,13 +4,13 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
# TODO - REMOVE AFTER TESTING
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
# schedule:
|
||||
# - cron: '0 0 * * 1' # Every Monday at midnight (UTC)
|
||||
|
||||
|
||||
env:
|
||||
NODE_ENV: development
|
||||
|
||||
jobs:
|
||||
update-wiki:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -35,12 +35,22 @@ jobs:
|
||||
repository: logan/drb-server.wiki # Replace with your wiki repository
|
||||
path: wiki
|
||||
|
||||
- name: Output Generated Documentation
|
||||
run: |
|
||||
cat Home.md
|
||||
ls
|
||||
|
||||
- name: Update wiki
|
||||
run: |
|
||||
cp -r home.md wiki/Home.md
|
||||
cp -rf Home.md wiki/Home.md
|
||||
cd wiki
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "gitea-actions@cusano.net"
|
||||
git add .
|
||||
git commit -m "Update wiki from JSDoc"
|
||||
git push
|
||||
# Check if there are any changes to commit
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to commit."
|
||||
else
|
||||
git commit -m "Update wiki from JSDoc"
|
||||
git push
|
||||
fi
|
||||
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"source": {
|
||||
"includePattern": ".+\\.([mc]?js(doc|x)?)$"
|
||||
"includePattern": ".+([mc]?js(doc|x)?)$"
|
||||
},
|
||||
"plugins": ["node_modules/jsdoc-babel"],
|
||||
"babel": {
|
||||
"presets": [ "es2015" ],
|
||||
"plugins": [ "transform-async-to-generator" ]
|
||||
}
|
||||
}
|
||||
1327
package-lock.json
generated
1327
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "src/server.js",
|
||||
"scripts": {
|
||||
"docs": "jsdoc2md -c jsdoc.conf src/**/*.mjs >> home.md",
|
||||
"docs": "jsdoc2md -c jsdoc.conf src/*js > Home.md",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint --fix .",
|
||||
"test": "mocha --timeout 5000",
|
||||
@@ -14,11 +14,14 @@
|
||||
"license": "ISC",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"chai": "^5.1.1",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"eslint-plugin-unused-imports": "^4.1.3",
|
||||
"jsdoc-babel": "^0.5.0",
|
||||
"jsdoc-to-markdown": "^8.0.3",
|
||||
"mocha": "^10.4.0",
|
||||
"prettier": "^3.3.3",
|
||||
|
||||
Reference in New Issue
Block a user