Skip to content

Commit fd8c320

Browse files
Reorganize the documentation table of content
Create a user guide part and a developper guide part to distinguish the two.
1 parent 4cc1d8d commit fd8c320

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+102
-867
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Please read the
2-
[contribute doc](https://github.com/PyCQA/pylint/blob/main/doc/development_guide/contribute.rst).
2+
[contribute doc](https://github.com/PyCQA/pylint/blob/main/doc/developer_guide/contribute.rst).

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To ease the process of reviewing your PR, do make sure to complete the following
55
66
- [ ] Add a ChangeLog entry describing what your PR does.
77
- [ ] If it's a new feature, or an important bug fix, add a What's New entry in
8-
`doc/whatsnew/<current release.rst>`.
8+
`doc/user_guide/whatsnew/<current release.rst>`.
99
- [ ] Write a good description on what the PR does.
1010
- [ ] If you used multiple emails or multiple names when contributing, add your mails
1111
and preferred name in ``script/.contributors_aliases.json``

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
/pylint.egg-info/
1010
.tox
1111
*.sw[a-z]
12-
doc/messages/
13-
doc/technical_reference/extensions.rst
14-
doc/technical_reference/features.rst
12+
doc/user_guide/messages/
13+
!doc/user_guide/messages/*.rst
14+
!doc/user_guide/messages/index.rst
15+
doc/developer_guide/technical_reference/extensions.rst
16+
doc/developer_guide/technical_reference/features.rst
1517
doc/user_guide/configuration/all-options.rst
1618
pyve
1719
build-stamp

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ repos:
7979
entry: python3 -m script.fix_documentation
8080
language: system
8181
types: [text]
82-
files: ^(ChangeLog|doc/whatsnew/\d+\.\d+\.rst)
82+
files: ^(ChangeLog|doc/user_guide/whatsnew/\d+\.\d+\.rst)
8383
- repo: https://github.com/myint/rstcheck
8484
rev: "v5.0.0"
8585
hooks:

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ What's New in Pylint 2.14.0?
88
Release date: TBA
99

1010
..
11-
Put new features here and also in 'doc/whatsnew/2.14.rst'
11+
Put new features here and also in 'doc/user_guide/whatsnew/2.14.rst'
1212

1313
* We have improved our recognition of inline disable and enable comments. It is
1414
now possible to disable ``bad-option-value`` inline (as long as you disable it before
File renamed without changes.

doc/development_guide/contribute.rst renamed to doc/developer_guide/contribute.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ of Pylint as it gives you access to the latest ``ast`` parser.
8585
(`What's New` section). For the release document we usually write some more details,
8686
and it is also a good place to offer examples on how the new change is supposed to work.
8787

88-
- Add a short entry in :file:`doc/whatsnew/VERSION.rst`.
88+
- Add a short entry in :file:`doc/user_guide/whatsnew/VERSION.rst`.
8989

9090
- If you used multiple emails or multiple names when contributing, add your mails
9191
and preferred name in the ``script/.contributors_aliases.json`` file.
File renamed without changes.
File renamed without changes.

doc/developer_guide/index.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Developer Guide
2+
===============
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
:titlesonly:
7+
8+
contribute
9+
testing
10+
how_tos/index.rst
11+
technical_reference/index.rst
12+
profiling
13+
14+
Changelog
15+
=========
16+
17+
The "Changelog" contains *all* nontrivial changes to Pylint for the current version.
18+
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
changelog.rst
File renamed without changes.

doc/development_guide/index.rst

-11
This file was deleted.

doc/exts/pylint_extensions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def builder_inited(app: Optional[Sphinx]) -> None:
4747
linter.load_plugin_modules(modules)
4848

4949
extensions_doc = os.path.join(
50-
base_path, "doc", "technical_reference", "extensions.rst"
50+
base_path, "doc", "developer_guide", "technical_reference", "extensions.rst"
5151
)
5252
with open(extensions_doc, "w", encoding="utf-8") as stream:
5353
stream.write(

doc/exts/pylint_features.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def builder_inited(app: Optional[Sphinx]) -> None:
2424
)
2525
linter = PyLinter()
2626
linter.load_default_plugins()
27-
features = os.path.join(base_path, "doc", "technical_reference", "features.rst")
27+
features = os.path.join(
28+
base_path, "doc", "developer_guide", "technical_reference", "features.rst"
29+
)
2830
with open(features, "w", encoding="utf-8") as stream:
2931
stream.write("Pylint features\n")
3032
stream.write("===============\n\n")

doc/exts/pylint_messages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
PYLINT_BASE_PATH = Path(__file__).resolve().parent.parent.parent
2424
"""Base path to the project folder."""
2525

26-
PYLINT_MESSAGES_PATH = PYLINT_BASE_PATH / "doc" / "messages"
26+
PYLINT_MESSAGES_PATH = PYLINT_BASE_PATH / "doc" / "user_guide" / "messages"
2727
"""Path to the messages documentation folder."""
2828

2929
PYLINT_MESSAGES_DATA_PATH = PYLINT_BASE_PATH / "doc" / "data" / "messages"

doc/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ they are prone to false positives or that they are opinionated enough
242242
for not being included as default messages.
243243

244244
You can see the plugin you need to explicitly :ref:`load in the technical reference
245-
<technical_reference/extensions:optional pylint checkers in the extensions module>`.
245+
<developer_guide/technical_reference/extensions:optional pylint checkers in the extensions module>`.
246246

247247
4.8 I am using another popular linter alongside pylint. Which messages should I disable to avoid duplicates?
248248
------------------------------------------------------------------------------------------------------------

doc/index.rst

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
Pylint User Manual
3-
==================
1+
Pylint documentation
2+
====================
43

54
Pylint is a tool that checks for errors in Python code, tries to enforce a
65
coding standard and looks for code smells. It can also look for certain type
@@ -13,16 +12,7 @@ refactored and can offer you details about the code's complexity.
1312
:titlesonly:
1413

1514
intro
16-
tutorial
17-
1815
user_guide/index.rst
19-
how_tos/index.rst
20-
messages/index.rst
21-
technical_reference/index.rst
22-
development_guide/index.rst
23-
additional_commands/index.rst
24-
16+
developer_guide/index.rst
2517
faq
26-
backlinks
2718
support
28-
whatsnew/index.rst

doc/messages/index.rst

-11
This file was deleted.

doc/messages/messages_introduction.rst

-15
This file was deleted.

0 commit comments

Comments
 (0)