Skip to content

Commit d0c9afd

Browse files
Changes to ensure that documentation can be generated locally with sphinx-build
1 parent 9fbf19e commit d0c9afd

6 files changed

Lines changed: 46 additions & 50 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
## Entries below this point added by Tim Littlefair, Nov 2025-
132+
133+
# A directory which can be used as a target for experimental output
134+
_work
135+

docs/conf.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
# -- Project information -----------------------------------------------------
2020

21-
project = "ai-python docs"
22-
copyright = "2022, Daniel Ciborowski"
23-
author = "Daniel Ciborowski"
21+
project = "tl-python-package-template"
22+
copyright = "2025, Tim Littlefair"
23+
author = "Tim Littlefair"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.1.0"
26+
release = "0.0.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------
@@ -60,7 +60,9 @@
6060
# Add any paths that contain custom static files (such as style sheets) here,
6161
# relative to this directory. They are copied after the builtin static files,
6262
# so a file named "default.css" will overwrite the builtin "default.css".
63-
html_static_path = ["_static"]
63+
# Presently commented out to avoid a warning because template project does not
64+
# have a populated .docs/_static subdirectory.
65+
# html_static_path = ["_static"]
6466

6567
# Napoleon settings
6668
napoleon_include_init_with_doc = True

docs/index.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
.. ai-python docs documentation master file, created by
2-
sphinx-quickstart on Thu May 5 14:06:45 2022.
1+
.. created by sphinx-quickstart on Thu May 5 14:06:45 2022
2+
Amended by Tim Littlefair, November 2025.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to ai-python docs's documentation!
7-
==========================================
6+
Tim Littlefair's Python Package Template
7+
========================================
8+
9+
If you use this repository as a template for your project,
10+
please amend the heading above to reflect your own project's
11+
identity.
12+
813

914
.. toctree::
1015
:maxdepth: 2
1116
:caption: Contents:
17+
1218
modules
1319

1420

docs/tl_python_package_template.hello_world.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
tl\_python\_package\_template package
22
=====================================
33

4-
Subpackages
5-
-----------
64

7-
.. toctree::
8-
:maxdepth: 4
9-
10-
tl_python_package_template.hello_world
11-
12-
Submodules
13-
----------
14-
15-
tl\_python\_package\_template.setup module
16-
------------------------------------------
5+
Module contents
6+
---------------
177

18-
.. automodule:: tl_python_package_template.setup
8+
.. automodule:: tl_python_package_template
199
:members:
2010
:undoc-members:
2111
:show-inheritance:
2212

23-
Module contents
24-
---------------
13+
Submodules
14+
----------
2515

26-
.. automodule:: tl_python_package_template
16+
tl\_python\_package\_template.hello\_world module
17+
-------------------------------------------------
18+
19+
.. automodule:: tl_python_package_template.hello_world
2720
:members:
2821
:undoc-members:
29-
:show-inheritance:
22+
:show-inheritance:
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# -------------------------------------------------------------
2-
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Original text Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Modified text Copyright (c) Tim Littlefair. All rights reserved.
34
# Licensed under the MIT License. See LICENSE in project root for information.
45
# -------------------------------------------------------------
5-
"""Python Package Template"""
6+
"""Tim Littlefair's Python Package Template
7+
8+
If you use this repository as a template for your project,
9+
please rename the top-level module directory under ./src
10+
containing the file __init__.py to reflect your own project's
11+
identity.
12+
13+
Renaming the module directory will trigger a requirement for
14+
the import statement in ./src/test/test_members.py to be
15+
updated to match the new package name."""
616
from __future__ import annotations
717

8-
__version__ = "0.0.2"
18+
__version__ = "0.0.0"

0 commit comments

Comments
 (0)