-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from RodrigoGonzalez/feat/add_serve_checks_7
feat(main-check): added checks using mkdocs
- Loading branch information
Showing
6 changed files
with
178 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# check-mkdocs | ||
Check if MkDocs is configured correctly | ||
|
||
This is a simple .pre-commit-config.yaml hook to check if MkDocs | ||
is configured correctly. | ||
|
||
## Pre-Commit Usage | ||
|
||
Add this to your `.pre-commit-config.yaml`, where `mkdocs.yml` | ||
is the name of your MkDocs YAML configuration file: | ||
|
||
```yaml | ||
repos: | ||
- repo: https://github.com/RodrigoGonzalez/check-mkdocs | ||
rev: v1.0.0 | ||
hooks: | ||
- id: check-mkdocs | ||
name: check-mkdocs | ||
args: [--config=mkdocs.yml] # Optional, mkdocs.yml is the default | ||
``` | ||
## Usage | ||
To run this hook, you can use the following command: | ||
```shell | ||
check-mkdocs --config=mkdocs.yml | ||
``` | ||
|
||
This works as well: | ||
|
||
```shell | ||
check-mkdocs mkdocs.yml | ||
``` | ||
|
||
And if mkdocs.yml is the name of your MkDocs YAML | ||
configuration file, this works too: | ||
|
||
```shell | ||
check-mkdocs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--8<-- "CHANGELOG.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Welcome to Check MkDocs | ||
|
||
This is a simple .pre-commit-config.yaml hook to check if MkDocs is configured correctly. | ||
|
||
## Usage | ||
|
||
Add this to your `.pre-commit-config.yaml`: | ||
|
||
```yaml | ||
repos: | ||
- repo: https://github.com/RodrigoGonzalez/check-mkdocs | ||
rev: v1.0.0 | ||
hooks: | ||
- id: check-mkdocs | ||
name: check-mkdocs | ||
args: [--config-file=mkdocs.yml] # Optional, mkdocs.yml is the default | ||
``` | ||
:::check_mkdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
site_name: Check MkDocs | ||
|
||
docs_dir: docs | ||
|
||
theme: | ||
name: "material" | ||
palette: | ||
- scheme: default | ||
toggle: | ||
icon: material/toggle-switch-off-outline | ||
name: Switch to dark mode | ||
- scheme: slate | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to light mode | ||
features: | ||
# - navigation.tabs | ||
- navigation.indexes | ||
- navigation.instant | ||
|
||
repo_name: RodrigoGonzalez/flake8-custom-import-rules | ||
repo_url: https://github.com/RodrigoGonzalez/check-mkdocs | ||
|
||
plugins: | ||
- search: | ||
- mkdocstrings: | ||
default_handler: python | ||
handlers: | ||
python: | ||
rendering: | ||
show_signature_annotations: true | ||
show_source: true | ||
paths: [src/check_mkdocs/*/] | ||
|
||
watch: | ||
- src/check_mkdocs | ||
|
||
nav: | ||
- Introduction: "index.md" | ||
- changelog.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[tool.poetry] | ||
name = "check_mkdocs" | ||
version = "0.1.0" | ||
description = "" | ||
description = "Simple check/command-line tool that parses, validates and loads configuration, builds the mkdocs project documentation, and serves it via a web server" | ||
readme = "README.md" | ||
authors = ["Rodrigo Gonzalez <[email protected]>"] | ||
repository = "https://github.com/RodrigoGonzalez/check-mkdocs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters