Skip to content

Commit

Permalink
Adds maintenance section to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Sep 9, 2024
1 parent 5f502f0 commit e99b7aa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
24 changes: 22 additions & 2 deletions docs/pdm.md → docs/maintenance.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PDM
# Maintenance

Package management scripts for ov-wag
This page describes how to maintain the project. This includes [running scripts](#run-scripts), [creating lockfiles](#create-lockfiles), and [updating dependencies](#update-lockfiles).

## Install project

Expand Down Expand Up @@ -37,3 +37,23 @@ pdm update --prod -G production -L pdm-locks/pdm.prod.lock --unconstrained --sav
# docs
pdm update --no-default -G docs -L pdm-locks/pdm.doc.lock --unconstrained --save-compatible --no-self
```

## Run tests

```bash
pytest
```

## Serve docs

Use the project script shortcut:

```bash
ov-docs
```

Or pass custom arguments to the underlying command:

```bash
mkdocs serve [args]
```
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nav:
- Home: index.md
- Setup: setup.md
- Develop: dev.md
- Maintenance: maintenance.md
- Reference: reference
markdown_extensions:
- admonition
Expand All @@ -19,7 +20,7 @@ markdown_extensions:
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight
- pymdownx.inlinehilite
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ repository = 'https://github.com/WGBH-MLA/ov-wag'

[project.scripts]
ov = 'cli:app'
ov-docs = 'mkdocs.commands:serve.serve'

[project.optional-dependencies]
cli = [
Expand Down

0 comments on commit e99b7aa

Please sign in to comment.