Skip to content

Commit 7d79294

Browse files
committed
Add Makefile for docs
1 parent aede216 commit 7d79294

35 files changed

+485
-461
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
!.vscode/launch.json
33
!.vscode/settings.json
44
!.vscode/tasks.json
5-
# Byte-compiled / optimized / DLL files
6-
# Distribution / packaging
7-
# JetBrains
8-
# Python
9-
# VSCode
105
*$py.class
116
*.egg
127
*.egg-info/
@@ -21,6 +16,7 @@ __pycache__/
2116
build/
2217
develop-eggs/
2318
dist/
19+
docs/_build/
2420
downloads/
2521
eggs/
2622
lib/

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ version number according
3434
- Tag-, file-, and callback-based versioning schemas are supported
3535
- Templates for *tag*, *dev* and *dirty* versions are separated
3636
- Templates support a lot of substitutions including git and environment information
37-
- Comprehensive and up-to-date documentation
37+
- Well-documented
3838

3939

4040
See `difference <https://setuptools-git-versioning.readthedocs.io/en/latest/differences.html>`_

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/common_issues/wrong_tag.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ both tag and commit have a creation date, and it is not possible to sort tags by
1818

1919
See also
2020
^^^^^^^^
21-
- :ref:`sort-by-option`
21+
- :ref:`sort-by-option` option

docs/differences.rst

Lines changed: 324 additions & 324 deletions
Large diffs are not rendered by default.

docs/install.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.. _installation:
12
.. include:: ../README.rst
23
:start-after: install

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/options/branch_formatter.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.. _branch-formatter-option
1+
.. _branch-formatter-option:
2+
23
``branch_formatter``
34
~~~~~~~~~~~~~~~~~~~~~
45

@@ -98,7 +99,7 @@ name and return a properly formatted one:
9899
Possible values
99100
^^^^^^^^^^^^^^^
100101

101-
- None
102+
- ``None``
102103

103104
Disables this feature
104105

docs/options/count_commits.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
.. _count-commits-option
1+
.. _count-commits-option:
2+
23
``count_commits_from_version_file``
34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45

56
Used by :ref:`dev-release-file` versioning schema.
67

7-
Enables feature of tracking commits history for file passed to :ref:`version-file-option`
8+
Enables feature of tracking commits history for file passed to :ref:`version-file-option` option
89

910
.. note::
1011

11-
This option used only if :ref:`version-file-option` is set.
12+
This option used only if :ref:`version-file-option` option is set.
1213

1314
Type
1415
^^^^^

docs/options/dev_template.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.. _dev-template-option
1+
.. _dev-template-option:
2+
23
``dev_template``
34
~~~~~~~~~~~~~~~~~~~~~
45

@@ -21,5 +22,5 @@ Default value
2122

2223

2324
Possible values
24-
^^^^^^^^
25+
^^^^^^^^^^^^^^^
2526
See :ref:`substitutions`

0 commit comments

Comments
 (0)