Skip to content

Commit b459c8b

Browse files
committed
doc: use BuildTheDocs, add CI workflow
1 parent 3967b59 commit b459c8b

22 files changed

+492
-745
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
@@ -4,3 +4,5 @@ build/
44

55
.idea/
66

7+
/doc/_build
8+
/doc/_theme

README.rst

+28-16
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
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 forked from `kevinpt <https://github.com/kevinpt/hdlparse>`_ via `zhelnio <https://github.com/zhelnio/hdlparse>`_. The aim of this fork is to provide some bug fixes and additional features to zhelnio's version of Hdlparse. A list of changes is included at the bottom of this README.
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

16-
Hdlparse requires Python 3.x and no additional libraries. This version of Hdlparse is not compatible with Python2.
17+
Hdlparse requires Python3 and no additional libraries. This version of Hdlparse is not compatible with Python2.
1718

1819

1920
Download
2021
--------
2122

22-
You can access the Hdlparse Git repository from `Github
23-
<https://github.com/vvvverre/hdlparse>`_. You can install direct from PyPI with the "pip"
24-
command if you have it available.
23+
You can access the Hdlparse Git repository from `Github <https://github.com/hdl/pyHDLParser>`_.
24+
You can install direct from PyPI with the "pip" command if you have it available.
25+
2526

2627
Installation
2728
------------
2829

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

31-
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:
38+
You need to have the Python setuptools installed first.
39+
If your OS has a package manager, it may be preferable to install setuptools through that tool.
40+
Otherwise you can use Pip:
3241

3342
.. code-block:: sh
3443
@@ -40,7 +49,9 @@ The easiest way to install Hdlparse is from `PyPI <https://pypi.python.org/pypi/
4049
4150
> pip install --upgrade hdlparse
4251
43-
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:
52+
This will download and install the latest release, upgrading if you already have it installed.
53+
If you don't have ``pip`` you may have the ``easy_install`` command available which can be used to install ``pip`` on
54+
your system:
4455

4556
.. code-block:: sh
4657
@@ -51,9 +62,10 @@ You can also use ``pip`` to get the latest development code from Github:
5162

5263
.. code-block:: sh
5364
54-
> pip install --upgrade https://github.com/vvvverre/hdlparse/tarball/master
65+
> pip install --upgrade https://github.com/hdl/pyHDLParser/tarball/main
5566
56-
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:
67+
If you manually downloaded a source package or created a clone with Git you can install with the following command run
68+
from the base Hdlparse directory:
5769

5870
.. code-block:: sh
5971
@@ -68,7 +80,7 @@ Documentation
6880
-------------
6981

7082
The full documentation is available online at the `main Hdlparse site
71-
<http://kevinpt.github.io/hdlparse/>`_.
83+
<http://hdl.github.io/pyHDLParser/>`_.
7284

7385

7486
Changes

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)