Skip to content

Commit 257ac67

Browse files
committed
docs added.
1 parent ab2a101 commit 257ac67

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.readthedocs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
6+
python:
7+
install:
8+
- requirements: docs/requirements.txt
9+

docs/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
author = 'N3XT0R'
55
release = '8.0.0'
66

7+
version = release
8+
79
extensions = [
810
'myst_parser',
911
]
@@ -15,3 +17,17 @@
1517
master_doc = 'index'
1618
exclude_patterns = []
1719
html_theme = 'furo'
20+
21+
import os
22+
if os.environ.get('READTHEDOCS') == 'True':
23+
github_user = 'N3XT0R'
24+
github_repo = 'laravel-migration-generator'
25+
github_version = 'master'
26+
27+
html_context = {
28+
'display_github': True,
29+
'github_user': github_user,
30+
'github_repo': github_repo,
31+
'github_version': github_version,
32+
'conf_py_path': '/docs/',
33+
}

docs/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sphinx
2+
myst-parser
3+
furo

0 commit comments

Comments
 (0)