-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mkdocs configuration for the release docs (#326)
Co-authored-by: Don Naro <[email protected]>
- Loading branch information
Showing
8 changed files
with
141 additions
and
81 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
version: 2 | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
commands: | ||
- pip install -U nox | ||
- mkdir -p _readthedocs/html/ | ||
- nox -e mkdocs -- build --site-dir=_readthedocs/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mkdocs | ||
mkdocs-ansible |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
site_name: Ansible Package Release Management | ||
site_url: https://ansible.readthedocs.io/projects/ansible-build-data | ||
repo_url: https://github.com/ansible-community/ansible-build-data | ||
theme: | ||
name: ansible | ||
features: | ||
- content.code.copy | ||
- navigation.footer | ||
# NOTE(gotmax23): I dislike web fonts in general and the Red Hat fonts from | ||
# the Ansible theme in particular | ||
font: false | ||
# REUSE-IgnoreStart | ||
copyright: > | ||
Copyright (C) 2023 Ansible Project Authors | | ||
SPDX-License-Identifier: <a style="text-decoration: underline;" href="https://github.com/ansible/ansible/blob/devel/COPYING">GPL-3.0-only</a> | ||
# REUSE-IgnoreEnd | ||
markdown_extensions: | ||
# Builtin | ||
- admonition | ||
- toc: | ||
permalink: true | ||
# pymdownx | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
- pymdownx.superfences | ||
nav: | ||
- Ansible Build Data: README.md | ||
- release-process.md | ||
- policies.md | ||
- new-ansible-and-freezes.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,9 @@ | ||
from __future__ import annotations | ||
|
||
import nox | ||
|
||
|
||
@nox.session | ||
def mkdocs(session: nox.Session): | ||
session.install("-r", "docs-requirements.txt") | ||
session.run("mkdocs", *(session.posargs or ["build"])) |