Skip to content

Commit 629bae1

Browse files
committed
Switch to the v2 configuration format
1 parent e778d22 commit 629bae1

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

.readthedocs.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# TODO: Replace with .readthedocsv2.yml once the v2 format becomes supported
2-
requirements_file: docs/requirements.txt
3-
4-
build:
5-
image: latest
1+
version: 2
62

73
python:
8-
version: 3.6
4+
install:
5+
- path: docs/
6+
7+
mkdocs:
8+
configuration: docs/mkdocs.yml

.readthedocsv2.yml

-8
This file was deleted.

mkdocs.yml renamed to docs/mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repo_url: https://github.com/orlnub123/django-class-settings
33
site_description: Effortless class-based settings for Django.
44
copyright: Copyright © 2018 orlnub123.
55
theme: readthedocs
6-
docs_dir: docs/files
6+
docs_dir: files
77

88
nav:
99
- Index: index.md

docs/plugins/generators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def on_page_read_source(self, _, page, config):
3030
if self.exists or page.file.name != "index":
3131
return
3232
source_lines = []
33-
with open("README.md", encoding="utf-8") as file:
33+
with open("../README.md", encoding="utf-8") as file:
3434
readme_html = markdown.markdown(file.read(), extensions=["mdx_partial_gfm"])
3535
readme_root = lxml.html.fromstring(readme_html)
3636
source_lines.append(self.get_title(readme_root))

docs/requirements.txt

-1
This file was deleted.

0 commit comments

Comments
 (0)