mirror of
https://github.com/sasjs/core.git
synced 2026-01-07 09:30:06 +00:00
chore(docs): adding a homepage to the doc site and integrating with the sasjs doc command. See https://core.sasjs.io
This commit is contained in:
@@ -27,7 +27,8 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"docs": "./sasjs/utils/build.sh"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sasjs/cli": "^2.4.0"
|
"@sasjs/cli": "^2.4.0"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
ALPHABETICAL_INDEX = NO
|
ALPHABETICAL_INDEX = NO
|
||||||
DISABLE_INDEX = YES
|
DISABLE_INDEX = NO
|
||||||
ENABLE_PREPROCESSING = NO
|
ENABLE_PREPROCESSING = NO
|
||||||
EXTENSION_MAPPING = sas=Java ddl=Java
|
EXTENSION_MAPPING = sas=Java ddl=Java
|
||||||
EXTRACT_LOCAL_CLASSES = NO
|
EXTRACT_LOCAL_CLASSES = NO
|
||||||
@@ -19,7 +19,8 @@ HTML_FOOTER = $(DOXY_CONTENT)new_footer.html
|
|||||||
HTML_EXTRA_STYLESHEET = $(DOXY_CONTENT)new_stylesheet.css
|
HTML_EXTRA_STYLESHEET = $(DOXY_CONTENT)new_stylesheet.css
|
||||||
INHERIT_DOCS = NO
|
INHERIT_DOCS = NO
|
||||||
INLINE_INFO = 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
|
LAYOUT_FILE = $(DOXY_CONTENT)DoxygenLayout.xml
|
||||||
MAX_INITIALIZER_LINES = 0
|
MAX_INITIALIZER_LINES = 0
|
||||||
PROJECT_NAME = Macro Core
|
PROJECT_NAME = Macro Core
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<!-- Generated by doxygen 1.8.14 -->
|
<!-- Generated by doxygen 1.8.14 -->
|
||||||
<!-- Navigation index tabs for HTML output -->
|
<!-- Navigation index tabs for HTML output -->
|
||||||
<navindex>
|
<navindex>
|
||||||
<tab type="mainpage" visible="no" title=""/>
|
<tab type="mainpage" visible="yes" title=""/>
|
||||||
<tab type="pages" visible="no" title="" intro=""/>
|
<tab type="pages" visible="no" title="" intro=""/>
|
||||||
<tab type="modules" visible="no" title="" intro=""/>
|
<tab type="modules" visible="no" title="" intro=""/>
|
||||||
<tab type="namespaces" visible="no" title="">
|
<tab type="namespaces" visible="no" title="">
|
||||||
|
|||||||
@@ -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"
|
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
|
"$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
|
||||||
"macroFolders": ["../base", "../meta", "../metax", "../viya", "../lua"]
|
"macroFolders": ["../base", "../meta", "../metax", "../viya", "../lua"],
|
||||||
|
"docConfig":{
|
||||||
|
"displayMacroCore": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
23
sasjs/utils/build.sh
Executable file
23
sasjs/utils/build.sh
Executable file
@@ -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"
|
||||||
Reference in New Issue
Block a user