File tree Expand file tree Collapse file tree 4 files changed +71
-5
lines changed Expand file tree Collapse file tree 4 files changed +71
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ __pycache__/
10
10
.Python
11
11
env /
12
12
build /
13
+ docs /build /
14
+ docs /docs_html /
13
15
develop-eggs /
14
16
dist /
15
17
downloads /
@@ -24,6 +26,7 @@ wheels/
24
26
* .egg-info /
25
27
.installed.cfg
26
28
* .egg
29
+ ads_latest.zip
27
30
28
31
# PyInstaller
29
32
# Usually these files are written by a python script from a template
Original file line number Diff line number Diff line change
1
+ # Documentation
2
+
3
+ ## Getting Started
4
+
5
+ Setup Conda.
6
+
7
+ ``` bash
8
+ curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3-latest-Linux-x86_64.sh
9
+ bash Miniconda3-latest-Linux-x86_64.sh
10
+ ```
11
+
12
+ Create conda environment.
13
+
14
+ ``` bash
15
+ conda create -n ads-docs python=3.8
16
+ conda activate ads-docs
17
+ ```
18
+
19
+ Install relevant development packages.
20
+
21
+ ``` bash
22
+ pip install -r requirements.txt
23
+ ```
24
+
25
+ ## Developing Docs With Live Reload
26
+
27
+ Start live-reload during the development face
28
+
29
+ ``` bash
30
+ sphinx-autobuild source/ build/
31
+ ```
32
+
33
+ Open in the browser [ http://127.0.0.1:8000 ]
34
+
35
+ ## Build
36
+
37
+ To build and create the html documentation, run the following in the ` docs/ ` folder.
38
+
39
+ ``` bash
40
+ sphinx-build -b html source/ docs_html/
41
+ ```
42
+
43
+ To ` zip ` the content of the html docs
44
+
45
+ ``` bash
46
+ zip -r ads-latest.zip docs_html/.
47
+ ```
48
+
49
+ ## Notes
50
+
51
+ - the ` source/conf.py ` defines most everything for the docs
52
+ - the ` ads.rst ` was auto-generated but then hand edited to remove tests package
53
+
54
+ ## Contribute
55
+
56
+ Now you can make updates to the docs and contributed via PRs.
Original file line number Diff line number Diff line change 1
- -e .
2
1
autodoc
3
2
nbsphinx
4
3
sphinx
5
4
sphinxcontrib-napoleon
6
5
sphinx-rtd-theme
6
+ sphinx_copybutton
7
+ oracle_ads
8
+ sphinx-autobuild
9
+ IPython
7
10
pandoc
8
- sphinx-copybutton
11
+ rstcheck
12
+ restructuredtext_lint
13
+ doc8
Original file line number Diff line number Diff line change 6
6
import os
7
7
import sys
8
8
9
- autoclass_content = "both" ##This causes documentation within the __init__ method to be pulled into the documentation properly
9
+ # This causes documentation within the __init__ method to be pulled into the documentation properly
10
+ autoclass_content = "both"
10
11
11
12
sys .path .insert (0 , os .path .abspath ("../../advanced-ds" ))
12
13
30
31
"sphinx.ext.graphviz" ,
31
32
"sphinx.ext.inheritance_diagram" ,
32
33
"nbsphinx" ,
33
- "sphinx_copybutton" ,
34
+ "sphinx_copybutton"
34
35
]
35
36
36
37
# Add any paths that contain templates here, relative to this directory.
55
56
# List of patterns, relative to source directory, that match files and
56
57
# directories to ignore when looking for source files.
57
58
# This pattern also affects html_static_path and html_extra_path.
58
- exclude_patterns = []
59
+ # exclude_patterns = []
60
+ exclude_patterns = ['build' , '**.ipynb_checkpoints' ]
59
61
60
62
# The name of the Pygments (syntax highlighting) style to use.
61
63
pygments_style = None
You can’t perform that action at this time.
0 commit comments