Skip to content
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

DRIVERS-2805 Use mkdocs and publish to readthedocs #203

Merged
merged 2 commits into from
May 10, 2024
Merged
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
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"

mkdocs:
configuration: mkdocs.yml

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,12 @@ Astrolabe requires [Click](https://pypi.org/project/click/),

## Documentation

Documentation is available at
[github.io](https://mongodb-labs.github.io/drivers-atlas-testing/).
Documentation is available on [ReadtheDocs](drivers-atlas-testing.readthedocs.io).

To build the documentation, you will need to install
[sphinx](https://www.sphinx-doc.org/). Documentation can be generated by
running:
[mkdocs](https://www.mkdocs.org/getting-started/).

```bash
make html
```

in the `docs/` directory. Generated documentation can be found in the
*docs/build/html/* directory.
Run `mkdocs serve` to see a live view of the docs.

## Linting and Formatting

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to astrolabe's documentation!
# Astrolabe

**astrolabe** is a toolkit for testing MongoDB driver behavior during
common MongoDB cluster reconfiguration operations. It currently supports
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs
4 changes: 3 additions & 1 deletion docs/technical-design.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Technical Design: Testing Drivers Against Atlas Planned Maintenance
# Technical Design

Testing Drivers Against Atlas Planned Maintenance

This document is **not** updated regularly. It's only purpose is to
provide the reader with information about design choices and decisions
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
site_name: My Docs
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ dependencies = [
"tabulate>=0.8,<0.9",
]

[project.optional-dependencies]
docs = ["sphinx"]

[project.scripts]
astrolabe = "astrolabe.cli:cli"

Expand Down