Skip to content

Commit 39fef77

Browse files
committed
doc: use BuildTheDocs, add CI workflow
1 parent be7cdab commit 39fef77

21 files changed

+464
-729
lines changed

.btd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
input: doc
2+
output: _build
3+
target: gh-pages
4+
formats: [ html ]
5+
theme: https://codeload.github.com/buildthedocs/sphinx.theme/tar.gz/v1

.github/workflows/Test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Doc
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * 5'
7+
workflow_dispatch:
8+
9+
jobs:
10+
11+
BTD:
12+
name: '📓 Docs'
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: '🧰 Checkout'
17+
uses: actions/checkout@v2
18+
19+
- name: '📓 BuildTheDocs (BTD)'
20+
uses: buildthedocs/btd@v0
21+
with:
22+
token: ${{ github.token }}
23+
24+
- name: '📤 Upload artifact: HTML'
25+
uses: actions/upload-artifact@master
26+
with:
27+
name: doc
28+
path: doc/_build/html

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.pyc
2+
/doc/_build
3+
/doc/_theme

doc/.nojekyll

Whitespace-only changes.

doc/Makefile

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
1-
# Minimal makefile for Sphinx documentation
2-
#
3-
4-
# You can set these variables from the command line.
1+
# Sphinx options.
52
SPHINXOPTS =
6-
SPHINXBUILD = python -msphinx
7-
SPHINXPROJ = HdlParse
8-
SOURCEDIR = .
3+
SPHINXBUILD = sphinx-build
4+
SPHINXPROJ = pyHDLParser
5+
PAPER =
96
BUILDDIR = _build
107

11-
# Put it first so that "make" without argument is like "make help".
8+
PAPEROPT_a4 = -D latex_paper_size=a4
9+
PAPEROPT_letter = -D latex_paper_size=letter
10+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -T -D language=en $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
11+
1212
help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

15+
#---
16+
17+
man:
18+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
19+
20+
#---
21+
22+
html:
23+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
24+
25+
#---
26+
27+
latex:
28+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
29+
30+
#---
31+
1532
.PHONY: help Makefile
1633

1734
# Catch-all target: route all unknown targets to Sphinx using the new
1835
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1936
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
37+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/_static/Kreon-Bold.woff2

-13.5 KB
Binary file not shown.

doc/_static/Kreon-Light.woff2

-12.6 KB
Binary file not shown.

doc/_static/Kreon-Regular.woff2

-13.3 KB
Binary file not shown.

doc/_static/project.css

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

doc/_templates/download.html

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

doc/_templates/layout.html

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

doc/_templates/page.html

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

doc/_templates/projects.html

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

doc/about.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
About
2+
#####
3+
4+
Licensing
5+
---------
6+
7+
pyHDLParser is distributed under the terms of the MIT license.
8+
9+
Other projects
10+
--------------
11+
12+
* `Evfs <https://kevinpt.github.io/evfs/>`__
13+
* `Guidoc <https://kevinpt.github.io/guidoc/>`__
14+
* `LeCroy-colorizer <http://kevinpt.github.io/lecroy-colorizer/>`__
15+
* `Opbasm <http://kevinpt.github.io/opbasm/>`__
16+
* `Ripyl <http://kevinpt.github.io/ripyl/>`__
17+
* `Symbolator <https://kevinpt.github.io/symbolator>`__
18+
* `Syntrax <https://kevinpt.github.io/syntrax>`__
19+
* `VerTcl <http://kevinpt.github.io/vertcl/>`__
20+
* `VHDL-extras <http://kevinpt.github.io/vhdl-extras/>`__

0 commit comments

Comments
 (0)