Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (19 sloc) 777 Bytes
cd $1
cd $2
export PATH="$PATH:$HOME/Library/Python/3.7/bin"
sphinx-quickstart -q -p '_adg' -a 'automated' -v '1.0'
sed -i .bak "s/extensions.*/extensions = ['sphinx.ext.autodoc', 'docfx_yaml.extension']/g"
IMPORT_COMBINATION='import os\nimport sys\n'
for combo in $(ls -d */ | cut -f1 -d"/"); do IMPORT_COMBINATION+="sys.path.append(os.path.abspath('$combo'))\n"; done
IMPORT_COMBINATION+="sys.path.insert(0, os.path.abspath('..'))\nsys.path.insert(0, os.path.abspath('../..'))"
echo $IMPORT_COMBINATION | cat - > temp && mv temp
sphinx-apidoc . -o . --module-first --no-headings --no-toc --implicit-namespaces
sphinx-build . _build
ls _build/docfx_yaml
cp -a _build/docfx_yaml/. $3
cd $3
cd ..
mono ../dbin/docfx/docfx.exe
You can’t perform that action at this time.