Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: python -m pip install --upgrade pip setuptools wheel

- name: Install project as a package
run: python -m pip install .[docs]
run: python -m pip install .[docs,properdocs]

- name: Build static website
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/lint-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
strategy:
fail-fast: false
matrix:
static-generator:
- "mkdocs"
- "properdocs"
python-version:
- "3.10"
- "3.11"
Expand All @@ -49,7 +52,7 @@ jobs:
run: python -m pip install --upgrade pip setuptools wheel

- name: Install project as a package
run: python -m pip install .[test]
run: python -m pip install .[test,${{ matrix.static-generator }}]

- name: Run Unit tests
run: python -m pytest
Expand All @@ -59,7 +62,7 @@ jobs:
with:
env_vars: PYTHON
flags: unittests
name: Code Coverage for unittests on python-${{ matrix.python-version }}]
name: Code Coverage for unittests on ${{ matrix.static-generator }}-python-${{ matrix.python-version }}]
env:
PYTHON: ${{ matrix.python-version }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ A plugin for [MkDocs](https://www.mkdocs.org), the static site generator, which

## Installation

Since its version 1.20.0, the plugin does not force a documentation generator on you: pick the one you use through an extra.

```sh
pip install mkdocs-rss-plugin
# with MkDocs
pip install "mkdocs-rss-plugin[mkdocs]"

# with ProperDocs
pip install "mkdocs-rss-plugin[properdocs]"
```

> If MkDocs or ProperDocs is already installed in your environment, `pip install mkdocs-rss-plugin` is enough.

## Usage

Minimal [`mkdocs.yml` configuration](https://www.mkdocs.org/user-guide/configuration/#project-information):
Expand Down Expand Up @@ -96,11 +104,11 @@ python -m pip install -e .[dev]
# including documentation dependencies
python -m pip install -e .[docs]

# including testing dependencies
python -m pip install -e .[test]
# including testing dependencies, with one documentation generator (mkdocs or properdocs)
python -m pip install -e .[test,mkdocs]

# all inclusive
python -m pip install -e .[dev,docs,test]
python -m pip install -e .[dev,docs,test,mkdocs]

# install git hooks
pre-commit install
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ classifiers = [
dependencies = [
"CacheControl[filecache]>=0.14.3,<1",
"GitPython>=3.2.1,<3.3",
"mkdocs==1.6.1",
"properdocs >=1.6.5,<2",
"requests>=2.32.5,<3",
"tzdata>=2024,<2027 ; sys_platform == 'win32'",
]
Expand All @@ -59,6 +57,7 @@ dev = [
"Flake8-pyproject>=1.2.3",
"pre-commit>=4,<5",
]

docs = [
"mkdocs-git-committers-plugin-2>=2.4.1,<2.6",
"mkdocs-git-revision-date-localized-plugin>=1.3,<1.7",
Expand All @@ -67,6 +66,11 @@ docs = [
"mkdocstrings-python>=1.16.2,<2.1",
"termynal>=0.12.2,<0.15",
]

mkdocs = ["mkdocs>=1.6.1,<2"]

properdocs = ["properdocs>=1.6.7,<2"]

test = [
"feedparser>=6.0.12,<6.1",
"jsonfeed-util>=1.2,<2",
Expand Down Expand Up @@ -103,7 +107,7 @@ exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug:",
# Don't complain if non-runnable code isn't run:
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about imports for type checking:
Expand Down
Loading