Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
berislavlopac committed Oct 5, 2022
1 parent 5222b87 commit 54bd8cc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 35 deletions.
17 changes: 0 additions & 17 deletions docs/css/custom.css

This file was deleted.

6 changes: 4 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Overview
# Momoa

`momoa` is a library for definition, validation and serialisation of models based on JSONSchema specifications.

[![Documentation Status](https://readthedocs.org/projects/momoa/badge/?version=latest)](https://momoa.readthedocs.io/en/latest/?badge=latest)

## Schema Object

The recommended way to instantiate a JSONSchema spec - especially if the schema contains internal `$ref` references - is directly from the URI to the specification file.
Expand Down Expand Up @@ -100,7 +102,7 @@ assert result == {
}
```

Conversely, data can be deserialised from a JSON string or Python dict into a Model instance:
Conversely, data can be deserialised from a JSON-formatted string or a Python dict into a Model instance:

```python
from momoa import Schema
Expand Down
5 changes: 0 additions & 5 deletions docs/reference.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs>=1.2.3
mkapi>=1.0.14
mkdocs>=1.3.0
mkdocs-material>=8.5.6
17 changes: 10 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
site_name: Momoa
repo_url: https://github.com/berislavlopac/momoa
site_url: https://momoa.readthedocs.io
site_description: A library for definition, validation and serialisation of models based on JSONSchema specifications.
site_author: Berislav Lopac <berislav@lopac.net>
use_directory_urls: false
theme:
name: readthedocs
extra_css:
- css/custom.css
plugins:
- search
- mkapi
name: material
icon:
logo: material/code-json
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
nav:
- index.md
- reference.md
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ pytest-spec = ">=3.2.0"
flake8 = ">=4.0.1"
pydocstyle = ">=6.1.1"
toml = ">=0.10.2"
mkdocs = ">=1.3.0"
mkapi = ">=1.0.14"
mutmut = ">=2.4.0"
tox = ">=3.25.0"
tox-poetry = ">=0.4.1"

[tool.poetry.group.docs.dependencies]
mkdocs = ">=1.3.0"
mkdocs-material = ">=8.5.6"

[tool.black]
line-length = 100
target-version = ['py38', 'py39']
Expand Down

0 comments on commit 54bd8cc

Please sign in to comment.