-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
60 additions
and
84 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
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,4 +1,4 @@ | ||
# Contributing | ||
# Contributing Guide | ||
|
||
First off, thanks for taking the time to contribute! :rocket: | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
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,29 +1,49 @@ | ||
# mkdocs-simple-plugin | ||
# Developing | ||
|
||
| [Docs](http://athackst.github.io/mkdocs-simple-plugin) | [Code](http://github.com/athackst/mkdocs-simple-plugin) | [PyPi](https://pypi.org/project/mkdocs-simple-plugin/) | [Docker](https://hub.docker.com/r/athackst/mkdocs-simple-plugin) | | ||
## Prerequisites | ||
|
||
![Test](https://github.com/athackst/mkdocs-simple-plugin/workflows/Test/badge.svg) ![Docs](https://github.com/athackst/mkdocs-simple-plugin/workflows/Docs/badge.svg) ![Docker](https://img.shields.io/docker/pulls/athackst/mkdocs-simple-plugin?color=blue) ![pypi](https://img.shields.io/pypi/dm/mkdocs-simple-plugin?color=blue) | ||
You will need to have [mkdocs](https://www.mkdocs.org/) installed on your system. I recommend installing it via pip to get the latest version. | ||
|
||
This plugin enables you to build documentation from markdown files interspersed within your code using [mkdocs](https://www.mkdocs.org/). It is designed for the way developers commonly write documentation in their own code -- with simple markdown files. | ||
```bash | ||
sudo apt-get install python-pip | ||
pip install --upgrade pip --user | ||
pip install mkdocs --user | ||
``` | ||
|
||
## About | ||
If you want to run the test suite, you'll also need 'bats' | ||
|
||
You may be wondering why you would want to generate a static site for your project, without doing the typical "wiki" thing of consolidating all documentation within a single `docs` folder or using a single `README` file. | ||
```bash | ||
sudo apt-get install bats | ||
``` | ||
|
||
* **My repository is too big for a single documentation source.** | ||
## Local install | ||
|
||
Sometimes it isn't really feasible to consolidate all documentation within an upper level `docs` directory. This is often the case with medium/large repositories. In general, if your code base is too large to fit well within a single `include` directory, your code base is probably also too large for documentation to fit within a single `docs` directory. | ||
Install the package locally with | ||
|
||
Since it's typically easier to keep documentation up to date when it lives as close to the code as possible, it is better to create multiple sources for documentation. | ||
```bash | ||
pip install -e . | ||
``` | ||
|
||
* **My repository is too simple for advanced documentation.** | ||
## Testing | ||
|
||
If your code base is _very very_ large, something like the [monorepo plugin](https://github.com/spotify/mkdocs-monorepo-plugin) might better fit your needs. | ||
Testing involves both linting with flake8 | ||
|
||
For most other medium+ repositories that have grown over time, you probably have scattered documentation throughout your code. By combining all of that documentation while keeping folder structure, you can better surface and collaborate with others. And, let's face it. That documentation is probably all in markdown, since github renders it nicely. | ||
```bash | ||
./tests/test_flake8.sh | ||
``` | ||
|
||
* **I want a pretty documentation site without the hassle.** | ||
and testing with `bats` | ||
|
||
Finally, you may be interested in this plugin if you have a desire for stylized documentation, but don't want to invest the time/energy in replicating information you already have in your README.md files, and you want to keep them where they are (thank you very much). | ||
```bash | ||
./tests/integration/test.bats | ||
``` | ||
|
||
See [mkdocs-simple-plugin](http://athackst.github.io/mkdocs-simple-plugin) for usage. | ||
If you want to test against all the different versions of python, run the local test script. | ||
|
||
```bash | ||
./tests/test_local.sh | ||
``` | ||
|
||
## VSCode | ||
|
||
Included in this package is a VSCode workspace and development container. See [how I develop with vscode and docker](https://www.allisonthackston.com/articles/docker_development.html) and [how I use vscode tasks](https://www.allisonthackston.com/articles/vscode_tasks.html). |
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
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
File renamed without changes.