Skip to content

Commit d952c3e

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

22 files changed

+493
-747
lines changed

.btd.yml

+5
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

+28
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

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.pyc
2+
/doc/_build
3+
/doc/_theme

README.rst

+29-18
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
1-
2-
========
31
Hdlparse
4-
========
2+
########
53

6-
Hdlparse is a simple package implementing a rudimentary parser for VHDL and Verilog. It is not capable of fully parsing the entire language. Rather, it is meant to extract enough key information from a source file to create generated documentation.
4+
Hdlparse is a simple package implementing a rudimentary parser for VHDL and Verilog.
5+
It is not capable of fully parsing the entire language.
6+
Rather, it is meant to extract enough key information from a source file to create generated documentation.
77

8-
This library is used by the `Symbolator <https://github.com/kevinpt/symbolator>`_ diagram generator.
8+
This library is used by the `Symbolator <https://github.com/hdl/symbolator>`_ diagram generator.
99

10-
For VHDL this library can extract component, subprogram, type, subtype, and constant declarations from a package. For Verilog it can extract module declarations (both 1995 and 2001 syntax).
10+
For VHDL this library can extract component, subprogram, type, subtype, and constant declarations from a package.
11+
For Verilog it can extract module declarations (both 1995 and 2001 syntax).
1112

1213

1314
Requirements
1415
------------
1516

1617
Hdlparse requires either Python 2.7 or Python 3.x and no additional libraries.
1718

18-
The installation script depends on setuptools. The source is written in
19-
Python 2.7 syntax but will convert cleanly to Python 3 when the installer
20-
passes it through 2to3.
19+
The installation script depends on setuptools.
20+
The source is written in Python 2.7 syntax but will convert cleanly to Python 3 when the installer passes it through 2to3.
2121

2222

2323
Download
2424
--------
2525

26-
You can access the Hdlparse Git repository from `Github
27-
<https://github.com/kevinpt/hdlparse>`_. You can install direct from PyPI with the "pip"
28-
command if you have it available.
26+
You can access the Hdlparse Git repository from `Github <https://github.com/hdl/pyHDLParser>`_.
27+
You can install direct from PyPI with the "pip" command if you have it available.
28+
2929

3030
Installation
3131
------------
3232

33-
Hdlparse is a Python library. You must have Python installed first to use it. Most modern Linux distributions and OS/X have it available by default. There are a number of options available for Windows. If you don't already have a favorite, I recommend getting one of the `"full-stack" Python distros <http://www.scipy.org/install.html>`_ that are geared toward scientific computing such as Anaconda or Python(x,y).
33+
Hdlparse is a Python library.
34+
You must have Python installed first to use it.
35+
Most modern Linux distributions and OS/X have it available by default.
36+
There are a number of options available for Windows.
37+
If you don't already have a favorite, I recommend getting one of the
38+
`"full-stack" Python distros <http://www.scipy.org/install.html>`_
39+
that are geared toward scientific computing such as Anaconda or Python(x,y).
3440

35-
You need to have the Python setuptools installed first. If your OS has a package manager, it may be preferable to install setuptools through that tool. Otherwise you can use Pip:
41+
You need to have the Python setuptools installed first.
42+
If your OS has a package manager, it may be preferable to install setuptools through that tool.
43+
Otherwise you can use Pip:
3644

3745
.. code-block:: sh
3846
@@ -44,7 +52,9 @@ The easiest way to install Hdlparse is from `PyPI <https://pypi.python.org/pypi/
4452
4553
> pip install --upgrade hdlparse
4654
47-
This will download and install the latest release, upgrading if you already have it installed. If you don't have ``pip`` you may have the ``easy_install`` command available which can be used to install ``pip`` on your system:
55+
This will download and install the latest release, upgrading if you already have it installed.
56+
If you don't have ``pip`` you may have the ``easy_install`` command available which can be used to install ``pip`` on
57+
your system:
4858

4959
.. code-block:: sh
5060
@@ -55,9 +65,10 @@ You can also use ``pip`` to get the latest development code from Github:
5565

5666
.. code-block:: sh
5767
58-
> pip install --upgrade https://github.com/kevinpt/hdlparse/tarball/master
68+
> pip install --upgrade https://github.com/hdl/pyHDLParser/tarball/master
5969
60-
If you manually downloaded a source package or created a clone with Git you can install with the following command run from the base Hdlparse directory:
70+
If you manually downloaded a source package or created a clone with Git you can install with the following command run
71+
from the base Hdlparse directory:
6172

6273
.. code-block:: sh
6374
@@ -72,5 +83,5 @@ Documentation
7283
-------------
7384

7485
The full documentation is available online at the `main Hdlparse site
75-
<http://kevinpt.github.io/hdlparse/>`_.
86+
<http://hdl.github.io/pyHDLParser/>`_.
7687

doc/.nojekyll

Whitespace-only changes.

doc/Makefile

+26-9
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

-143
This file was deleted.

doc/_templates/download.html

-10
This file was deleted.

doc/_templates/layout.html

-21
This file was deleted.

doc/_templates/page.html

-5
This file was deleted.

0 commit comments

Comments
 (0)