diff --git a/package.json b/package.json index fec6110..541eb59 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "version": "1.0.0", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "docs": "./sasjs/utils/build.sh" }, "devDependencies": { "@sasjs/cli": "^2.4.0" diff --git a/sasjs/doxy/Doxyfile b/sasjs/doxy/Doxyfile index ff35654..81c294e 100644 --- a/sasjs/doxy/Doxyfile +++ b/sasjs/doxy/Doxyfile @@ -1,5 +1,5 @@ ALPHABETICAL_INDEX = NO -DISABLE_INDEX = YES +DISABLE_INDEX = NO ENABLE_PREPROCESSING = NO EXTENSION_MAPPING = sas=Java ddl=Java EXTRACT_LOCAL_CLASSES = NO @@ -19,7 +19,8 @@ HTML_FOOTER = $(DOXY_CONTENT)new_footer.html HTML_EXTRA_STYLESHEET = $(DOXY_CONTENT)new_stylesheet.css INHERIT_DOCS = NO INLINE_INFO = NO -INPUT = $(DOXY_INPUT) +INPUT = $(DOXY_CONTENT)../../README.md $(DOXY_INPUT) +USE_MDFILE_AS_MAINPAGE = README.md LAYOUT_FILE = $(DOXY_CONTENT)DoxygenLayout.xml MAX_INITIALIZER_LINES = 0 PROJECT_NAME = Macro Core diff --git a/sasjs/doxy/DoxygenLayout.xml b/sasjs/doxy/DoxygenLayout.xml index 2113460..2b950a3 100644 --- a/sasjs/doxy/DoxygenLayout.xml +++ b/sasjs/doxy/DoxygenLayout.xml @@ -2,7 +2,7 @@ - + @@ -108,4 +108,4 @@ - + \ No newline at end of file diff --git a/sasjs/doxy/build.sh b/sasjs/doxy/build.sh deleted file mode 100644 index e7578f6..0000000 --- a/sasjs/doxy/build.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -#################################################################### -# PROJECT: Macro Core Docs Build # -#################################################################### - -BUILD_FOLDER="/tmp/macrocore_docs" - -# move to project root -cd .. - -# create build directory -rm -rf $BUILD_FOLDER -mkdir $BUILD_FOLDER - -# copy relevant files -cp -r base $BUILD_FOLDER -cp -r meta $BUILD_FOLDER -cp -r metax $BUILD_FOLDER -cp -r lua $BUILD_FOLDER -cp -r viya $BUILD_FOLDER -cp -r doxy $BUILD_FOLDER -cp main.dox $BUILD_FOLDER -cp doxy/Doxyfile $BUILD_FOLDER - -# update Doxyfile and generate -cd $BUILD_FOLDER -echo "OUTPUT_DIRECTORY=$BUILD_FOLDER/out" >> $BUILD_FOLDER/Doxyfile -echo "INPUT+=main.dox" >> $BUILD_FOLDER/Doxyfile -doxygen Doxyfile - -# refresh github pages site -git clone git@github.com:sasjs/core.github.io.git -cd core.github.io -rm -r * -mv $BUILD_FOLDER/out/doxy/* . -echo 'core.sasjs.io' > CNAME -git add . -git commit -m "build.sh build on $(date +%F:%H:%M:%S)" -git push -npx sitemap-generator-cli https://core.sasjs.io -git add . -git commit -m "adding sitemap" -git push - -echo "check it out: https://sasjs.github.io/core.github.io/files.html" diff --git a/sasjs/sasjsconfig.json b/sasjs/sasjsconfig.json index b382680..b4f24c6 100644 --- a/sasjs/sasjsconfig.json +++ b/sasjs/sasjsconfig.json @@ -1,4 +1,7 @@ { "$schema": "https://cli.sasjs.io/sasjsconfig-schema.json", - "macroFolders": ["../base", "../meta", "../metax", "../viya", "../lua"] + "macroFolders": ["../base", "../meta", "../metax", "../viya", "../lua"], + "docConfig":{ + "displayMacroCore": false + } } diff --git a/sasjs/utils/build.sh b/sasjs/utils/build.sh new file mode 100755 index 0000000..84975f5 --- /dev/null +++ b/sasjs/utils/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash +#################################################################### +# PROJECT: Macro Core Docs Build # +#################################################################### + +sasjs doc + +# refresh github pages site +rm -rf sasjsbuild/docsite +git clone git@github.com:sasjs/core.github.io.git sasjsbuild/docsite +rm -rf sasjsbuild/docsite/* +mv sasjsbuild/docs/* sasjsbuild/docsite/ +cd sasjsbuild/docsite/ +echo 'core.sasjs.io' > CNAME +git add . +git commit -m "build.sh build on $(date +%F:%H:%M:%S)" +git push +npx sitemap-generator-cli https://core.sasjs.io +git add . +git commit -m "adding sitemap" +git push + +echo "check it out: https://sasjs.github.io/core.github.io/files.html"