Skip to content

Commit b8b92b6

Browse files
authored
Merge pull request #304 from sasjs/docsify
Docsify
2 parents eb1699e + a9aa327 commit b8b92b6

File tree

8 files changed

+575
-156
lines changed

8 files changed

+575
-156
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ yarn-error.log*
2222
sasjsbuild/
2323
sasjsresults/
2424
.sasjsrc
25+
26+
# temporary documentation sites
27+
public/docs/static/js
28+
public/docs/stastic/sas

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "public/docs"]
2+
path = public/docs
3+
url = git@github.com:sasjs/docs

.sasjslint

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"noTrailingSpaces": true,
3-
"noEncodedPasswords": true,
4-
"hasDoxygenHeader": true,
5-
"hasMacroNameInMend": true,
6-
"hasMacroParentheses": true,
7-
"noNestedMacros": false,
8-
"noSpacesInFileNames": true,
9-
"maxLineLength": 230,
10-
"lowerCaseFileNames": true,
11-
"noTabIndentation": true,
12-
"indentationMultiple": 2
13-
}
2+
"noTrailingSpaces": true,
3+
"noEncodedPasswords": true,
4+
"hasDoxygenHeader": true,
5+
"hasMacroNameInMend": true,
6+
"hasMacroParentheses": true,
7+
"noNestedMacros": true,
8+
"noSpacesInFileNames": true,
9+
"maxLineLength": 80,
10+
"lowerCaseFileNames": true,
11+
"noTabIndentation": true,
12+
"indentationMultiple": 2
13+
}

package-lock.json

Lines changed: 535 additions & 141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"scripts": {
1515
"start": "npx webpack-dev-server --config webpack.dev.js --open --hot",
1616
"build": "npx webpack --config webpack.prod.js",
17+
"docs": "typedoc --out ./public/docs/static/js && sasjs doc -t viya ",
18+
"docs:serve": " docsify serve ./public/docs",
1719
"deploy": "rsync -avhe ssh ./build/* --delete $SSH_ACCOUNT:$DEPLOY_PATH",
1820
"buildAndDeploy": "npm run build && npm run deploy",
1921
"lint:fix": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,json,yml,md,graphql}\"",
@@ -26,9 +28,9 @@
2628
"@material-ui/lab": "^4.0.0-alpha.60",
2729
"@mui/icons-material": "^5.2.5",
2830
"@mui/material": "^5.2.6",
29-
"@sasjs/adapter": "^3.4.1",
30-
"@sasjs/core": "^3.9.0",
31-
"@sasjs/utils": "^2.34.1",
31+
"@sasjs/adapter": "3.7.0",
32+
"@sasjs/core": "4.9.0",
33+
"@sasjs/utils": "2.36.0",
3234
"axios": "^0.24.0",
3335
"moment": "^2.29.1",
3436
"react": "^17.0.2",
@@ -57,6 +59,7 @@
5759
"sass-loader": "^12.3.0",
5860
"style-loader": "^3.3.1",
5961
"ts-loader": "^9.2.6",
62+
"typedoc": "0.22.12",
6063
"typescript": "^4.5.2",
6164
"webpack": "5.68.0",
6265
"webpack-cli": "4.9.1",

public/docs

Submodule docs added at ab7fb9d

sasjs/sasjsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
3+
"docConfig": {
4+
"enableLineage": true,
5+
"doxyContent": {
6+
"readMe": "../../README.md"
7+
},
8+
"outDirectory": "public/docs/static/sas"
9+
},
310
"macroFolders": [
411
"sasjs/macros"
512
],

typedoc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"entryPoints": [
3+
"src/utils",
4+
"src/components/abortModal.tsx"
5+
],
6+
"out": "docs"
7+
}

0 commit comments

Comments
 (0)