Skip to content

Commit 0039dbe

Browse files
committed
try read the docs
1 parent b1bb54d commit 0039dbe

24 files changed

+196
-1795
lines changed

.gitignore

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
1+
2+
### Customised ###
3+
docs/old/
4+
docs/_build/
5+
6+
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
7+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks
8+
9+
### JupyterNotebooks ###
10+
# gitignore template for Jupyter Notebooks
11+
# website: http://jupyter.org/
12+
13+
.ipynb_checkpoints
14+
*/.ipynb_checkpoints/*
15+
16+
# IPython
17+
profile_default/
18+
ipython_config.py
19+
20+
# Remove previous ipynb_checkpoints
21+
# git rm -r .ipynb_checkpoints/
22+
23+
### Python ###
124
# Byte-compiled / optimized / DLL files
2-
*__pycache__/
3-
methylbert/data/__pycache__/
4-
#*.py[cod]
25+
__pycache__/
26+
*.py[cod]
527
*$py.class
628

729
# C extensions
@@ -21,7 +43,6 @@ parts/
2143
sdist/
2244
var/
2345
wheels/
24-
pip-wheel-metadata/
2546
share/python-wheels/
2647
*.egg-info/
2748
.installed.cfg
@@ -51,6 +72,7 @@ coverage.xml
5172
*.py,cover
5273
.hypothesis/
5374
.pytest_cache/
75+
cover/
5476

5577
# Translations
5678
*.mo
@@ -69,18 +91,21 @@ instance/
6991
# Scrapy stuff:
7092
.scrapy
7193

94+
# Sphinx documentation
95+
docs/_build/
96+
7297
# PyBuilder
98+
.pybuilder/
7399
target/
74100

75101
# Jupyter Notebook
76-
.ipynb_checkpoints
77102

78103
# IPython
79-
profile_default/
80-
ipython_config.py
81104

82105
# pyenv
83-
.python-version
106+
# For a library or package, you might want to ignore these files since the code is
107+
# intended to run in multiple environments; otherwise, check them in:
108+
# .python-version
84109

85110
# pipenv
86111
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -125,3 +150,11 @@ dmypy.json
125150

126151
# Pyre type checker
127152
.pyre/
153+
154+
# pytype static type analyzer
155+
.pytype/
156+
157+
# Cython debug symbols
158+
cython_debug/
159+
160+
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks

.readthedocs.yaml

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
1-
# Read the Docs configuration file for Sphinx projects
2-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
1+
version: "2"
32

4-
# Required
5-
version: 2
6-
7-
# Set the OS, Python version and other tools you might need
83
build:
9-
os: ubuntu-22.04
4+
os: "ubuntu-22.04"
105
tools:
11-
python: "3.12"
12-
# You can also specify other tool versions:
13-
# nodejs: "20"
14-
# rust: "1.70"
15-
# golang: "1.20"
16-
17-
# Build documentation in the "docs/" directory with Sphinx
18-
sphinx:
19-
configuration: docs/conf.py
20-
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21-
# builder: "dirhtml"
22-
# Fail on all warnings to avoid broken references
23-
# fail_on_warning: true
6+
python: "3.10"
247

25-
# Optionally build your docs in additional formats such as PDF and ePub
26-
# formats:
27-
# - pdf
28-
# - epub
8+
python:
9+
install:
10+
- requirements: docs/requirements.txt
2911

30-
# Optional but recommended, declare the Python requirements required
31-
# to build your documentation
32-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33-
# python:
34-
# install:
35-
# - requirements: docs/requirements.txt
12+
sphinx:
13+
configuration: docs/source/conf.py

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Template for the Read the Docs tutorial
2+
=======================================
3+
4+
This GitHub template includes fictional Python library
5+
with some basic Sphinx docs.
6+
7+
Read the tutorial here:
8+
9+
https://docs.readthedocs.io/en/stable/tutorial/

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
8+
SOURCEDIR = source
9+
BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

docs/conf.py

Lines changed: 0 additions & 32 deletions
This file was deleted.
-1.32 MB
Binary file not shown.

docs/index.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/make.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ REM Command file for Sphinx documentation
77
if "%SPHINXBUILD%" == "" (
88
set SPHINXBUILD=sphinx-build
99
)
10-
set SOURCEDIR=.
11-
set BUILDDIR=_build
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
1214

1315
%SPHINXBUILD% >NUL 2>NUL
1416
if errorlevel 9009 (
@@ -19,12 +21,10 @@ if errorlevel 9009 (
1921
echo.may add the Sphinx directory to PATH.
2022
echo.
2123
echo.If you don't have Sphinx installed, grab it from
22-
echo.https://www.sphinx-doc.org/
24+
echo.http://sphinx-doc.org/
2325
exit /b 1
2426
)
2527

26-
if "%1" == "" goto help
27-
2828
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
2929
goto end
3030

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx==7.1.2
2+
sphinx-rtd-theme==1.3.0rc1

docs/run_build.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)