Skip to content

Commit ff0ba37

Browse files
authored
Merge pull request #33 from cgay/dev
docs: Use toctree instead of contents, more...
2 parents fbb2dcd + 311989d commit ff0ba37

File tree

3 files changed

+14
-74
lines changed

3 files changed

+14
-74
lines changed

documentation/source/conf.py

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,18 @@
11
# Configuration file for the Sphinx documentation builder.
2-
#
3-
# This file only contains a selection of the most common options. For a full
4-
# list see the documentation:
5-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6-
7-
# -- Path setup --------------------------------------------------------------
8-
9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
122

133
import os
144
import sys
15-
16-
sys.path.insert(0, os.path.abspath('../sphinx-extensions/sphinxcontrib'))
17-
18-
import dylan.domain
19-
import dylan.themes as dylan_themes
20-
21-
22-
23-
# -- Project information -----------------------------------------------------
5+
sys.path.insert(0, os.path.abspath('../../_packages/sphinx-extensions/current/src/sphinxcontrib'))
246

257
project = 'command-line-parser'
268
copyright = '2022, Dylan Hackers'
279
author = 'Dylan Hackers'
28-
29-
# The full version, including alpha/beta/rc tags
3010
release = 'v3.2.0'
31-
32-
33-
# -- General configuration ---------------------------------------------------
34-
35-
# Add any Sphinx extension module names here, as strings. They can be
36-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
37-
# ones.
11+
exclude_patterns = ['_build']
12+
primary_domain = 'dylan'
13+
html_theme = 'furo' # sudo pip install furo
14+
html_title = 'command-line-parser'
3815
extensions = [
3916
'dylan.domain',
4017
'sphinx.ext.intersphinx'
4118
]
42-
43-
# Add any paths that contain templates here, relative to this directory.
44-
templates_path = ['_templates']
45-
46-
# List of patterns, relative to source directory, that match files and
47-
# directories to ignore when looking for source files.
48-
# This pattern also affects html_static_path and html_extra_path.
49-
exclude_patterns = ['_build']
50-
51-
# This makes it so that each document doesn't have to use
52-
# .. default-domain:: dylan
53-
# but they probably should anyway, so that they can be built separately
54-
# without depending on this top-level config file.
55-
primary_domain = 'dylan'
56-
57-
# -- Options for HTML output -------------------------------------------------
58-
59-
# The theme to use for HTML and HTML Help pages. See the documentation for
60-
# a list of builtin themes.
61-
html_theme = dylan_themes.get_html_theme_default()
62-
63-
# Theme options are theme-specific and customize the look and feel of a theme
64-
# further. For a list of options available for each theme, see the
65-
# documentation.
66-
html_theme_options = dylan_themes.get_html_theme_options_default()
67-
68-
# Add any paths that contain custom themes here, relative to this directory.
69-
html_theme_path = [dylan_themes.get_html_theme_path()]
70-
71-
# The name for this set of Sphinx documents. If None, it defaults to
72-
# "<project> v<release> documentation".
73-
html_title = "Dylan Library Reference"
74-
75-
# Add any paths that contain custom static files (such as style sheets) here,
76-
# relative to this directory. They are copied after the builtin static files,
77-
# so a file named "default.css" will overwrite the builtin "default.css".
78-
html_static_path = ['_static']

documentation/source/index.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
*******************************
2-
The command-line-parser Library
3-
*******************************
1+
*******************
2+
command-line-parser
3+
*******************
44

55
.. current-library:: command-line-parser
66
.. current-module:: command-line-parser
77

8-
.. contents:: Contents
9-
:local:
8+
.. toctree::
109

1110

1211
The *command-line-parser* library provides a facility to parse the
@@ -151,8 +150,8 @@ Reference
151150
=========
152151

153152

154-
The command-line-parser Module
155-
------------------------------
153+
Module: command-line-parser
154+
---------------------------
156155

157156
.. class:: <command>
158157
:abstract:
@@ -714,8 +713,8 @@ Option Classes
714713
of the default one.
715714

716715

717-
The option-parser-protocol Module
718-
---------------------------------
716+
Module: option-parser-protocol
717+
------------------------------
719718

720719
This module exports an API that can be used to extend the existing command line
721720
parser without modifying the source in this library. It shouldn't be common to

dylan-package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
1111
],
1212
"dev-dependencies": [
13+
"sphinx-extensions",
1314
1415
]
1516
}

0 commit comments

Comments
 (0)