FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitorch-engine/docs/make_docs.sh at main · GreenBitAI/bitorch-engine · GitHub
GreenBitAI
bitorch-engine
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bitorch-engine
/
docs
/
make_docs.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
24 lines (21 loc) · 666 Bytes
Breadcrumbs
bitorch-engine
/
docs
/
make_docs.sh
Copy path
File metadata and controls
executable file
·
24 lines (21 loc) · 666 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!
/usr/bin/env bash
if
!
[
-d
"
docs
"
]
;
then
cd
..
fi
if
!
[
-d
"
docs
"
]
;
then
echo
"
Could not locate docs directory. Please run the script from the root or the docs directory.
"
exit
1
fi
function
package_required()
{
pip freeze
|
grep
"
${1}
"
&
>
/dev/null
if
!
[
$?
==
"
0
"
]
;
then
echo
"
Package '
${1}
' not found. Please install it, e.g. with: $ pip install
${1}
"
exit
1
fi
}
#
check new packages are installed
package_required pandoc
package_required sphinx_design
pandoc --from=markdown --to=rst --output=README.rst README.md
python docs/scripts/convert_docs.py README.rst
sphinx-build -b html docs/source/ docs/build/ -a
Back
|
FazBrowse Home
|
New Git URL