Skip to content

Commit dabd278

Browse files
committed
docs: add btd.yml and Makefile
1 parent 9809344 commit dabd278

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
lines changed

.btd.yml

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

docs/Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
SPHINXOPTS =
2+
SPHINXBUILD = sphinx-build
3+
PAPER =
4+
BUILDDIR = _build
5+
6+
PAPEROPT_a4 = -D latex_paper_size=a4
7+
PAPEROPT_letter = -D latex_paper_size=letter
8+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -T -D language=en $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
9+
10+
#---
11+
12+
man:
13+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
14+
15+
#---
16+
17+
html:
18+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
19+
20+
#---
21+
22+
latex:
23+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex

docs/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
extensions = [
1414
"sphinx.ext.extlinks",
1515
"sphinx.ext.intersphinx",
16-
"sphinx.ext.todo",
17-
"sphinxarg.ext", # Automatic argparse command line argument documentation
16+
"sphinx.ext.todo"
1817
]
1918

2019
# The suffix(es) of source filenames.
@@ -24,7 +23,7 @@
2423

2524
master_doc = "index"
2625

27-
project = u"Introduction to TDD and CI With VUnit"
26+
project = u"VUnit: Introduction to TDD and CI"
2827
copyright = u"2014-2021, Lars Asplund"
2928
author = u"LarsAsplund and contributors"
3029

@@ -52,6 +51,7 @@
5251
"home_breadcrumbs": False,
5352
}
5453

54+
html_context = {}
5555
ctx = Path(__file__).resolve().parent / 'context.json'
5656
if ctx.is_file():
5757
html_context.update(loads(ctx.open('r').read()))
@@ -79,6 +79,9 @@
7979
extlinks = {
8080
"vunit_example": ("https://github.com/VUnit/vunit/tree/master/examples/%s/", ""),
8181
"vunit_file": ("https://github.com/VUnit/vunit/tree/master/%s/", ""),
82-
"vunit_commit": ("https://github.com/vunit/vunit/tree/%s/", "@"),
82+
"vunit_commit": ("https://github.com/VUnit/vunit/tree/%s/", "@"),
8383
"vunit_issue": ("https://github.com/VUnit/vunit/issues/%s/", "#"),
84+
"tdd_file": ("https://github.com/VUnit/tdd-intro/tree/master/%s/", ""),
85+
"tdd_commit": ("https://github.com/VUnit/tdd-intro/tree/%s/", "@"),
86+
"tdd_issue": ("https://github.com/VUnit/tdd-intro/issues/%s/", "#"),
8487
}

docs/index.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

2-
.. centered:: |shieldRepo|_ |shieldGitter|_ |shieldTwitter|_
2+
.. centered:: |shieldTdd|_ |shieldVunit|_ |shieldGitter|_ |shieldTwitter|_
33

4-
.. |shieldRepo| image:: https://img.shields.io/badge/VUnit/vunit-0c479d.svg?longCache=true&style=flat-square&logo=github
5-
.. _shieldRepo: https://github.com/VUnit/tdd-intro
4+
.. |shieldTdd| image:: https://img.shields.io/badge/VUnit/tdd--intro-0c479d.svg?longCache=true&style=flat-square&logo=github
5+
.. _shieldTdd: https://github.com/VUnit/tdd-intro
6+
7+
.. |shieldVunit| image:: https://img.shields.io/badge/VUnit/vunit-0c479d.svg?longCache=true&style=flat-square&logo=github
8+
.. _shieldVunit: https://github.com/VUnit/vunit
69

710
.. |shieldGitter| image:: https://img.shields.io/gitter/room/VUnit/vunit.svg?longCache=true&style=flat-square&logo=gitter&logoColor=4db797&color=4db797
811
.. _shieldGitter: https://gitter.im/VUnit/vunit

0 commit comments

Comments
 (0)