File tree 7 files changed +35
-3
lines changed
7 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 36
36
node-version : 14
37
37
38
38
- name : Build documentation
39
- run : poetry run make -C docs html
39
+ run : ./scripts/build_docs.sh
40
40
41
41
- name : Build Docusaurus website
42
42
run : |
Original file line number Diff line number Diff line change 21
21
* .h5
22
22
* .npz
23
23
* .pkl
24
+
25
+ # vscode
26
+ .vscode
Original file line number Diff line number Diff line change 1
1
{% - set external_urls = {
2
2
'github' : 'https://github.com/Rose-STL-Lab/torchTS' ,
3
- 'home' : 'https://github.com/Rose-STL-Lab/ torchTS/' ,
3
+ 'home' : 'https://rose-stl-lab. github.io/ torchTS/docs /' ,
4
4
'get_started' : ' ' ,
5
5
'blog' : 'https://github.com/Rose-STL-Lab/torchTS' ,
6
6
'resources' : 'https://github.com/Rose-STL-Lab/torchTS' ,
Original file line number Diff line number Diff line change 88
88
# documentation.
89
89
html_theme_options = {
90
90
"pytorch_project" : "tutorials" ,
91
- "canonical_url" : "https://github.com/Rose-STL-Lab/ torchTS" ,
91
+ "canonical_url" : "https://rose-stl-lab. github.io/ torchTS/docs/ " ,
92
92
"collapse_navigation" : False ,
93
93
"display_version" : True ,
94
94
"logo" : "_static/images/torchTS_logo.png" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # run this script from the project root using `./scripts/build_docs.sh`
3
+
4
+ echo " -----------------------------------"
5
+ echo " Generating API reference via Sphinx"
6
+ echo " -----------------------------------"
7
+ cd docs || exit
8
+ make html
9
+ cd .. || exit
10
+
11
+
12
+ # run script to parse html generated by sphinx
13
+ echo " --------------------------------------------"
14
+ echo " Parsing Sphinx docs and moving to Docusaurus"
15
+ echo " --------------------------------------------"
16
+ mkdir -p " website/static/api/"
17
+
18
+ cwd=$( pwd)
19
+ SPHINX_HTML_DIR=" website/static/api/"
20
+ cp -R " ${cwd} /docs/build/html/" " ${cwd} /${SPHINX_HTML_DIR} "
21
+ echo " Parsed Sucessfully"
22
+ echo " Moved location: ${SPHINX_HTML_DIR} "
Original file line number Diff line number Diff line change 1
1
# Dependencies
2
2
/node_modules
3
+ yarn.lock
3
4
4
5
# Production
5
6
/build
7
+ /static /api
6
8
7
9
# Generated files
8
10
.docusaurus
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ module.exports = {
46
46
position : "left" ,
47
47
label : "Docs" ,
48
48
} ,
49
+ {
50
+ href : "https://rose-stl-lab.github.io/torchTS/api" ,
51
+ label : "API Reference" ,
52
+ position : "left" ,
53
+ } ,
49
54
{
50
55
href : "https://github.com/Rose-STL-Lab/torchTS" ,
51
56
label : "GitHub" ,
You can’t perform that action at this time.
0 commit comments