Skip to content

Publish to PyPI #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
File renamed without changes.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

This is a plugin that scans the specified directories and files for JSON Schema files, converts them to markdown and builds them into your documentation.

**Breaking Change** This version can introduce some breaking change. Markdown output is now wrtie to documentation directory (`${docs_dir/schema}`)instead of `site/schema`. If your documentation was in `site` folder, this will change nothing. Use the new `output` options for control it if needed.
> [!IMPORTANT]
> This fork introduces some breaking change over the original `mkdocs-schema-reader`. Markdown output is now written to the documentation directory (`${docs_dir/schema}`)instead of `site/schema`. If your documentation was in `site` folder, this will change nothing. Use the new `output` options for control it if needed.

## Setup

Install the plugin using pip:

`pip install mkdocs-schema-reader`
`pip install mkdocs_schema_reader_2`

Activate the plugin in `mkdocs.yml`:
```yaml
Expand All @@ -29,7 +30,8 @@ plugins:

Specified directories will be scanned for schema json files, so consider specifying individual files for expansive directories.

> **Note:** If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.
> [!NOTE]
> If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.

More information about plugins in the [MkDocs documentation][mkdocs-plugins].

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs>=1.0.3
mkdocs>=1.0.4
jsonschema2md>=0.3.0
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
long_description = fh.read()

setup(
name="mkdocs_schema_reader",
name="mkdocs_schema_reader_2",
version="0.12.1",
description="A MkDocs plugin to collate json schema files and convert them into markdown files",
description="A MkDocs plugin to embed json schema files as markdown within your documentation.",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="mkdocs, schema, json, plugin",
url="https://github.com/magicaljellybeans/mkdocs_schema_reader",
author="Tom Robinson",
author_email="[email protected]",
url="https://github.com/mysiki/mkdocs_schema_reader",
author="",
author_email="",
license="MIT",
python_requires=">=3.6",
install_requires=["mkdocs>=1.0.4", "jsonschema2md>=0.3.0"],
Expand Down