Skip to content

Commit

Permalink
doc: add redirects map for moved pages (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Mar 23, 2023
1 parent aa3d1d6 commit 6881f1d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/docs/dev/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

{!../../CHANGELOG.md!}
--8<-- "../CHANGELOG.md"
2 changes: 1 addition & 1 deletion docs/docs/dev/contributing.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{!../../CONTRIBUTING.md!}
--8<-- "../CONTRIBUTING.md"
12 changes: 10 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ plugins:
python:
options:
docstring_style: google
- redirects:
redirect_maps:
'plugin/fixtures.md': 'dev/fixtures.md'
'plugin/write.md': 'dev/write.md'
'pyproject/build.md': 'reference/build.md'
'plugin/reference.md': 'reference/api.md'
'usage/cli_reference.md': 'reference/cli.md'
'usage/configuration.md': 'reference/configuration.md'
'pyproject/pep621.md': 'reference/pep621.md'

nav:
- Usage:
Expand Down Expand Up @@ -71,12 +80,11 @@ markdown_extensions:
- pymdownx.tabbed:
alternate_style: true
- pymdownx.details
- pymdownx.snippets
- admonition
- tables
- toc:
permalink: "#"
- markdown_include.include:
base_path: docs
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
Expand Down
27 changes: 13 additions & 14 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ doc = [
"mkdocs>=1.1",
"mkdocs-material>=7.3",
"mkdocstrings[python]>=0.18",
"markdown-include>=0.5.1",
"mike>=1.1.2",
"setuptools>=62.3.3",
"markdown-exec>=0.7.0",
"mkdocs-redirects>=1.2.0",
]
workflow = [
"pdm-pep517>=1.0.0,<2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pdm/cli/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def do_remove(
if not group:
group = "dev" if dev else "default"
if group not in list(project.iter_groups()):
raise ProjectError(f"No-exist group {group}")
raise ProjectError(f"Non-exist group {group}")

deps, _ = project.get_pyproject_dependencies(group, dev)
project.core.ui.echo(
Expand Down

0 comments on commit 6881f1d

Please sign in to comment.