Skip to content

Commit 5a92760

Browse files
committed
Merge remote-tracking branch 'origin/master' into ci
2 parents 3ac1b7f + 762c44c commit 5a92760

File tree

171 files changed

+2510
-2503
lines changed

Some content is hidden

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

171 files changed

+2510
-2503
lines changed

.gitattributes

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
properdocs/contrib/search/lunr-language/** linguist-vendored
2-
properdocs/themes/mkdocs/js/** linguist-vendored
3-
properdocs/themes/mkdocs/js/base.js linguist-vendored=false
4-
properdocs/themes/mkdocs/css/** linguist-vendored
5-
properdocs/themes/mkdocs/css/base.css linguist-vendored=false
6-
properdocs/themes/readthedocs/js/** linguist-vendored
7-
properdocs/themes/readthedocs/js/theme.js linguist-vendored=false
8-
properdocs/themes/readthedocs/css/** linguist-vendored
9-
properdocs/themes/readthedocs/css/theme_extra.css linguist-vendored=false
2+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/js/** linguist-vendored
3+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/js/base.js linguist-vendored=false
4+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/css/** linguist-vendored
5+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/css/base.css linguist-vendored=false
6+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/js/** linguist-vendored
7+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/js/theme.js linguist-vendored=false
8+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/css/** linguist-vendored
9+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/css/theme_extra.css linguist-vendored=false
1010
docs/img/plugin-events.svg linguist-generated

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defaults:
99
shell: bash
1010
jobs:
1111
test:
12+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1213
strategy:
1314
fail-fast: false
1415
matrix:
@@ -63,7 +64,9 @@ jobs:
6364
if: matrix.versions != 'minimal'
6465
run: |
6566
hatch run +py=${{matrix.python}} integration:test
67+
6668
style:
69+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6770
runs-on: ubuntu-latest
6871
steps:
6972
- name: Download source
@@ -100,6 +103,7 @@ jobs:
100103
run: hatch run lint:spelling
101104

102105
package:
106+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
103107
runs-on: ubuntu-latest
104108
steps:
105109
- uses: actions/checkout@v6
@@ -114,7 +118,7 @@ jobs:
114118
- name: Check packaged files
115119
shell: bash -e -x {0}
116120
run: |
117-
expected_wheel=(-eproperdocs/{templates/sitemap.xml,config/base.py,py.typed,contrib/search/lunr-language/lunr.nl.js,themes/{mkdocs,readthedocs}/{base.html,locales/{de,es}/LC_MESSAGES/messages.mo}})
118-
expected_sdist=("${expected_wheel[@]}" -e{pyproject.toml,hatch_build.py})
121+
expected_wheel=(-eproperdocs/{templates/sitemap.xml,config/base.py,py.typed,contrib/search/lunr-language/lunr.nl.js})
122+
expected_sdist=("${expected_wheel[@]}" -epyproject.toml)
119123
test "$(tar -ztf dist/properdocs-*.tar.gz | grep -F "${expected_sdist[@]}" | tee /dev/stderr | wc -l)" -eq "${#expected_sdist[@]}"
120124
test "$(unzip -l dist/properdocs-*any.whl | grep -F "${expected_wheel[@]}" | tee /dev/stderr | wc -l)" -eq "${#expected_wheel[@]}"

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- cron: '0 6 * * 6'
77
jobs:
88
build:
9+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Download source

.jshintignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
properdocs/themes/**/js/jquery-**.min.js
2-
properdocs/themes/mkdocs/js/highlight.pack.js
3-
properdocs/themes/mkdocs/js/bootstrap.bundle.min.js
4-
properdocs/themes/mkdocs/js/modernizr-**.min.js
5-
properdocs/themes/readthedocs/js/theme.js
6-
properdocs/themes/readthedocs/js/html5shiv.min.js
2+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/js/highlight.pack.js
3+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/js/bootstrap.bundle.min.js
4+
packages/properdocs-theme-mkdocs/properdocs_theme_mkdocs/js/modernizr-**.min.js
5+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/js/theme.js
6+
packages/properdocs-theme-readthedocs/properdocs_theme_readthedocs/js/html5shiv.min.js
77
properdocs/contrib/search/templates/search/lunr.js
88
properdocs/contrib/search/lunr-language/lunr.**.js
99
properdocs/contrib/search/lunr-language/tinyseg.js

CONTRIBUTING.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ It is particularly helpful if an issue report touches on all of these aspects:
2525

2626
1. What are you trying to achieve?
2727

28-
2. What is your `mkdocs.yml` configuration (+ other relevant files)? Preferably reduced to the minimal reproducible example.
28+
2. What is your `properdocs.yml` configuration (+ other relevant files)? Preferably reduced to the minimal reproducible example.
2929

3030
3. What did you expect to happen when applying this setup?
3131

@@ -119,7 +119,7 @@ Documentation files are also checked by markdownlint, so you should run this as
119119
hatch run lint:check
120120
```
121121

122-
If you add a new plugin to mkdocs.yml, you don't need to add it to any "requirements" file, because that is managed automatically.
122+
If you add a new plugin to properdocs.yml, you don't need to add it to any "requirements" file, because that is managed automatically.
123123

124124
> INFO: If you don't want to use Hatch, for documentation you can install requirements into a virtualenv, in one of these ways (with `.venv` being the virtualenv directory):
125125
>
@@ -159,8 +159,12 @@ updated by running the `extract_messages` command. To update the
159159
`pot` file for both built-in themes, run these commands:
160160
161161
```bash
162-
pybabel extract --project=ProperDocs --copyright-holder=ProperDocs --msgid-bugs-address='https://github.com/properdocs/properdocs/issues' --no-wrap --version="$(hatch version)" --mapping-file properdocs/themes/babel.cfg --output-file properdocs/themes/mkdocs/messages.pot properdocs/themes/mkdocs
163-
pybabel extract --project=ProperDocs --copyright-holder=ProperDocs --msgid-bugs-address='https://github.com/properdocs/properdocs/issues' --no-wrap --version="$(hatch version)" --mapping-file properdocs/themes/babel.cfg --output-file properdocs/themes/readthedocs/messages.pot properdocs/themes/readthedocs
162+
(cd packages/properdocs-theme-mkdocs/ && \
163+
pybabel extract --copyright-holder=ProperDocs --msgid-bugs-address='https://github.com/properdocs/properdocs/issues' --no-wrap --version="$(hatch version)" --mapping-file babel.cfg --output-file properdocs_theme_mkdocs/messages.pot properdocs_theme_mkdocs
164+
)
165+
(cd packages/properdocs-theme-readthedocs/ && \
166+
pybabel extract --copyright-holder=ProperDocs --msgid-bugs-address='https://github.com/properdocs/properdocs/issues' --no-wrap --version="$(hatch version)" --mapping-file babel.cfg --output-file properdocs_theme_readthedocs/messages.pot properdocs_theme_readthedocs
167+
)
164168
```
165169
166170
The updated `pot` file should be included in a PR with the updated template.

README.md

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,85 @@
11
# ProperDocs
22

3-
> *Project documentation with Markdown*
4-
53
[![PyPI Version][pypi-v-image]][pypi-v-link]
64
[![Build Status][GHAction-image]][GHAction-link]
75

8-
ProperDocs is a **fast**, **simple** and **downright gorgeous** static site
9-
generator that's geared towards building project documentation. Documentation
10-
source files are written in Markdown, and configured with a single YAML
11-
configuration file. It is designed to be easy to use and can be extended with
12-
third-party themes, plugins, and Markdown extensions.
6+
ProperDocs is a static site generator intended for project documentation. Source files are written in Markdown and converted to static HTML during the build process.
7+
8+
Project configuration is defined in a YAML configuration file (`properdocs.yml`). This file specifies the documentation structure, theme configuration, and optional plugin settings.
9+
10+
ProperDocs supports extension through plugins, themes and Markdown extensions.
1311

14-
Please see the [Documentation][properdocs] for an introductory tutorial and a full
15-
user guide.
12+
For usage instructions and examples, see the Documentation.
13+
14+
---
1615

1716
## Features
1817

19-
- Build static HTML files from Markdown files.
20-
- Use Plugins and Markdown Extensions to enhance ProperDocs.
21-
- Use the built-in themes, third party themes or create your own.
22-
- Publish your documentation anywhere that static files can be served.
23-
- Much more!
18+
Current functionality includes:
19+
20+
- Conversion of Markdown source files into static HTML pages
21+
- YAML-based configuration
22+
- Plugin system for extending functionality
23+
- Support for Markdown extensions
24+
- Support for third-party themes
25+
- Static output suitable for deployment on standard web servers
26+
27+
Additional functionality is available through plugins.
28+
29+
---
2430

2531
## Support
2632

27-
If you need help with ProperDocs, do not hesitate to get in contact with us!
33+
If you encounter problems while using ProperDocs, the following resources are available:
2834

2935
- For questions and high-level discussions, use **[Discussions]** on GitHub.
30-
- For small questions, a good alternative is the **[Chat room]** on
31-
Gitter/Matrix.
36+
- For small questions, a good alternative is the **[Discord server]**.
3237
- To report a bug or make a feature request, open an **[Issue]** on GitHub.
3338

34-
Please note that we may only provide
35-
support for problems/questions regarding core features of ProperDocs. Any
36-
questions or bug reports about features of third-party themes, plugins,
37-
extensions or similar should be made to their respective projects.
38-
But, such questions are *not* banned from the [chat room].
39+
Support is generally limited to **core ProperDocs functionality**. Issues related to third-party themes, plugins or extensions should normally be reported to the maintainers of those projects.
40+
41+
Questions about such components may still be discussed in chat.
3942

40-
Make sure to stick around to answer some questions as well!
43+
---
4144

4245
## Links
4346

4447
- [Official Documentation][properdocs]
4548
- [Latest Release Notes][release-notes]
4649
- [Catalog of third-party plugins, themes and recipes][catalog]
4750

48-
## Contributing to ProperDocs
51+
---
52+
53+
## Contributing
54+
55+
Contributions are welcome.
4956

50-
The ProperDocs project welcomes, and depends on, contributions from developers and
51-
users in the open source community. Please see the [Contributing Guide] for
52-
information on how you can help.
57+
For development setup, coding guidelines and contribution workflow, see the **[Contributing Guide]**.
58+
59+
---
5360

5461
## Code of Conduct
5562

56-
Everyone interacting in the ProperDocs project's codebases, issue trackers, and
57-
discussion forums is expected to follow the [PyPA Code of Conduct].
63+
All participants in the ProperDocs project are expected to follow the **[PSF Code of Conduct]**.
64+
65+
---
66+
67+
## License
68+
69+
ProperDocs is distributed under the [**BSD-2-Clause license**](LICENSE).
5870

5971
<!-- Badges -->
6072
[pypi-v-image]: https://img.shields.io/pypi/v/properdocs.svg
6173
[pypi-v-link]: https://pypi.org/project/properdocs/
6274
[GHAction-image]: https://github.com/properdocs/properdocs/actions/workflows/ci.yml/badge.svg
6375
[GHAction-link]: https://github.com/properdocs/properdocs/actions/workflows/ci.yml
76+
6477
<!-- Links -->
6578
[properdocs]: https://properdocs.org
6679
[Issue]: https://github.com/properdocs/properdocs/issues
6780
[Discussions]: https://github.com/properdocs/properdocs/discussions
68-
[Chat room]: https://gitter.im/mkdocs/community
81+
[Discord server]: https://discord.gg/CwYAgEPHZd
6982
[release-notes]: https://properdocs.org/about/release-notes/
7083
[Contributing Guide]: https://properdocs.org/about/contributing/
71-
[PyPA Code of Conduct]: https://www.pypa.io/en/latest/code-of-conduct/
84+
[PSF Code of Conduct]: https://www.python.org/psf/conduct/
7285
[catalog]: https://github.com/properdocs/catalog
73-
74-
## License
75-
76-
[BSD-2-Clause](https://github.com/properdocs/properdocs/blob/master/LICENSE)

0 commit comments

Comments
 (0)