Skip to content

Commit fa57623

Browse files
committed
Updated docs.
1 parent 6a89e2b commit fa57623

File tree

6 files changed

+58
-6
lines changed

6 files changed

+58
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020 Dominic Davis-Foster
1+
Copyright © 2020 Dominic Davis-Foster
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

doc-source/index.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,58 @@ Installation
112112
113113
.. extensions:: seed_intersphinx_mapping
114114

115+
Configuration
116+
-----------------
117+
118+
.. confval:: pkg_requirements_source
119+
120+
The requirements source.
121+
122+
* If this is a list, it is taken to be a list of directories
123+
in which to search for ``requirements.txt`` files.
124+
Any files found will be used to compile the list of requirements.
125+
126+
* If this is the string ``requirements``,
127+
the list of requirements will be determined from the ``requirements.txt`` file
128+
in the directory given by the :confval:`pkg_requirements_source` option.
129+
130+
Currently, no other sources are supported.
131+
132+
133+
.. confval:: repository_root
134+
135+
The path to the repository root, relative to the Sphinx source directory.
136+
137+
E.g., for this repository structure:
138+
139+
::
140+
141+
.
142+
├── LICENSE
143+
├── README.rst
144+
├── doc-source # <- this is the Sphinx source directory
145+
| ├── index.rst
146+
| └── conf.py
147+
├── requirements.txt # <- this is the file containing the requirements
148+
├── seed_intersphinx_mapping
149+
├── setup.py
150+
├── tests
151+
└── tox.ini
152+
153+
the value would be ``..``, which is the default.
154+
155+
156+
Caching
157+
--------
158+
159+
``seed_intersphinx_mapping`` caches the documentation URLs for PyPI packages.
160+
The cache can be cleared as follows:
161+
162+
.. prompt:: bash
163+
164+
python3 -m seed_intersphinx_mapping
165+
166+
.. TODO:: automatic cache clearing
115167

116168
.. toctree::
117169
:hidden:

seed_intersphinx_mapping/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Populate the Sphinx 'intersphinx_mapping' dictionary from the project's requirements.
66
"""
77
#
8-
# Copyright (c) 2020 Dominic Davis-Foster <[email protected]>
8+
# Copyright © 2020 Dominic Davis-Foster <[email protected]>
99
#
1010
# Permission is hereby granted, free of charge, to any person obtaining a copy
1111
# of this software and associated documentation files (the "Software"), to deal

seed_intersphinx_mapping/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Caching functions.
66
"""
77
#
8-
# Copyright (c) 2020 Dominic Davis-Foster <[email protected]>
8+
# Copyright © 2020 Dominic Davis-Foster <[email protected]>
99
#
1010
# Permission is hereby granted, free of charge, to any person obtaining a copy
1111
# of this software and associated documentation files (the "Software"), to deal

seed_intersphinx_mapping/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Core functionality.
66
"""
77
#
8-
# Copyright (c) 2020 Dominic Davis-Foster <[email protected]>
8+
# Copyright © 2020 Dominic Davis-Foster <[email protected]>
99
#
1010
# Permission is hereby granted, free of charge, to any person obtaining a copy
1111
# of this software and associated documentation files (the "Software"), to deal
@@ -84,7 +84,7 @@ def get_sphinx_doc_url(pypi_name: str) -> str:
8484
:return: The URl of the project's Sphinx documentation.
8585
8686
:raises: | :exc:`ValueError` if the url could not be determined.
87-
| :exc:`slumber.exceptions.HttpNotFoundError` if the project could not be found on PyPI.
87+
| :exc:`apeye.slumber_url.HttpNotFoundError` if the project could not be found on PyPI.
8888
"""
8989

9090
pypi_url: SlumberURL = PYPI_API / pypi_name / "json"

seed_intersphinx_mapping/requirements_parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.. TODO:: Other formats, e.g. setup.cfg, flit, poetry
88
"""
99
#
10-
# Copyright (c) 2020 Dominic Davis-Foster <[email protected]>
10+
# Copyright © 2020 Dominic Davis-Foster <[email protected]>
1111
#
1212
# Permission is hereby granted, free of charge, to any person obtaining a copy
1313
# of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)