Skip to content

Commit 8a2241b

Browse files
authored
Merge pull request #2 from JordanRL/f-mkdocs-merge
Existing mkdocs.yml options
2 parents 5847b42 + 0da9238 commit 8a2241b

File tree

5 files changed

+242
-99
lines changed

5 files changed

+242
-99
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "samsara/roster",
33
"type": "library",
44
"description": "A PHP console tool to generate Markdown documentation from your docblocks and types hints using templates.",
5-
"keywords": ["documentation", "markdown", "template", "console", "cli", "command line"],
5+
"keywords": ["documentation", "markdown", "template", "console", "cli", "command line", "mkdocs", "rtd"],
66
"funding": [
77
{
88
"type": "github",
@@ -25,6 +25,8 @@
2525
"require": {
2626
"symfony/console": "^v5.3",
2727
"samsara/mason": "^0.1",
28+
"hassankhan/config": "^2.2",
29+
"symfony/yaml": "^5.3",
2830
"php": ">=8.0"
2931
},
3032
"require-dev": {

doc-templates/roster-templates-mkdocs/mkdocs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
site_name: {$siteName}
1+
site_name: ''
22
extra_css:
33
- css/roster-style.css
4-
repo_url: {$repoUrl}
5-
site_url: {$siteUrl}
6-
nav:
7-
{$navigation}
4+
repo_url: ''
5+
site_url: ''
6+
nav: []
87
theme:
98
name: readthedocs
109
highlightjs: true

docs/roster/latest/Samsara/Roster/Roster.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -117,38 +117,30 @@
117117
**return**
118118

119119
type
120-
: string
120+
: array|string
121121

122122
description
123123
: *No description available*
124124

125-
!!! signature "protected Roster->buildNavArrayRecursive(array $parts, int $depth)"
126-
**$parts**
125+
!!! signature "protected Roster->formatNavArrayRecursive(array $nav)"
126+
**$nav**
127127

128128
type
129129
: array
130130

131131
description
132132
: *No description available*
133133

134-
**$depth**
135-
136-
type
137-
: int
138-
139-
description
140-
: *No description available*
141-
142134
**return**
143135

144136
type
145-
: array|string
137+
: array
146138

147139
description
148140
: *No description available*
149141

150-
!!! signature "protected Roster->buildNavRecursive(array $navArray, int $depth, string $builtString)"
151-
**$navArray**
142+
!!! signature "protected Roster->buildNavArrayRecursive(array $parts, int $depth, string $builtString)"
143+
**$parts**
152144

153145
type
154146
: array
@@ -175,7 +167,7 @@
175167
**return**
176168

177169
type
178-
: string
170+
: array|string
179171

180172
description
181173
: *No description available*

mkdocs.yml

Lines changed: 63 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,67 @@
1-
site_name: Roster - Docs From The Source
1+
site_name: 'Roster - Docs From The Source'
22
extra_css:
3-
- css/roster-style.css
4-
repo_url: https://github.com/JordanRL/Roster/
5-
site_url: https://jordanrl.github.io/Roster/
3+
- css/roster-style.css
4+
repo_url: 'https://github.com/JordanRL/Roster/'
5+
site_url: 'https://jordanrl.github.io/Roster/'
66
nav:
7-
- 'Home': 'index.md'
8-
- 'About':
9-
- 'Installation': 'getting-started/installation.md'
10-
- 'Using the Command': 'getting-started/using-the-command.md'
11-
- 'Code Reference':
12-
- 'Roster':
13-
- 'TemplateFactory': 'roster/latest/Samsara/Roster/TemplateFactory.md'
14-
- 'Roster': 'roster/latest/Samsara/Roster/Roster.md'
15-
- 'App': 'roster/latest/Samsara/Roster/App.md'
16-
- 'Processors':
17-
- 'InterfaceInlineProcessor': 'roster/latest/Samsara/Roster/Processors/InterfaceInlineProcessor.md'
18-
- 'TraitInlineProcessor': 'roster/latest/Samsara/Roster/Processors/TraitInlineProcessor.md'
19-
- 'MethodArgumentDetailProcessor': 'roster/latest/Samsara/Roster/Processors/MethodArgumentDetailProcessor.md'
20-
- 'ClassProcessor': 'roster/latest/Samsara/Roster/Processors/ClassProcessor.md'
21-
- 'TemplateProcessor': 'roster/latest/Samsara/Roster/Processors/TemplateProcessor.md'
22-
- 'PropertyProcessor': 'roster/latest/Samsara/Roster/Processors/PropertyProcessor.md'
23-
- 'MethodArgumentProcessor': 'roster/latest/Samsara/Roster/Processors/MethodArgumentProcessor.md'
24-
- 'MethodProcessor': 'roster/latest/Samsara/Roster/Processors/MethodProcessor.md'
25-
- 'Base':
26-
- 'BaseCodeProcessor': 'roster/latest/Samsara/Roster/Processors/Base/BaseCodeProcessor.md'
27-
7+
-
8+
Home: index.md
9+
-
10+
About:
11+
-
12+
Installation: getting-started/installation.md
13+
-
14+
'Using the Command': getting-started/using-the-command.md
15+
-
16+
'Code Reference':
17+
-
18+
Roster:
19+
-
20+
TemplateFactory: roster/latest/Samsara/Roster/TemplateFactory.md
21+
-
22+
Roster: roster/latest/Samsara/Roster/Roster.md
23+
-
24+
App: roster/latest/Samsara/Roster/App.md
25+
-
26+
Processors:
27+
-
28+
InterfaceInlineProcessor: roster/latest/Samsara/Roster/Processors/InterfaceInlineProcessor.md
29+
-
30+
TraitInlineProcessor: roster/latest/Samsara/Roster/Processors/TraitInlineProcessor.md
31+
-
32+
MethodArgumentDetailProcessor: roster/latest/Samsara/Roster/Processors/MethodArgumentDetailProcessor.md
33+
-
34+
ClassProcessor: roster/latest/Samsara/Roster/Processors/ClassProcessor.md
35+
-
36+
TemplateProcessor: roster/latest/Samsara/Roster/Processors/TemplateProcessor.md
37+
-
38+
PropertyProcessor: roster/latest/Samsara/Roster/Processors/PropertyProcessor.md
39+
-
40+
MethodArgumentProcessor: roster/latest/Samsara/Roster/Processors/MethodArgumentProcessor.md
41+
-
42+
MethodProcessor: roster/latest/Samsara/Roster/Processors/MethodProcessor.md
43+
-
44+
Base:
45+
-
46+
BaseCodeProcessor: roster/latest/Samsara/Roster/Processors/Base/BaseCodeProcessor.md
2847
theme:
29-
name: readthedocs
30-
highlightjs: true
31-
hljs_languages:
32-
- php
48+
name: readthedocs
49+
highlightjs: true
50+
hljs_languages:
51+
- php
3352
markdown_extensions:
34-
- toc:
35-
toc_depth: 1
36-
- admonition
37-
- pymdownx.tabbed
38-
- pymdownx.superfences
39-
- pymdownx.highlight:
40-
linenums: true
41-
linenums_style: inline
42-
- pymdownx.snippets:
43-
base_path: ./docs/snippets
44-
check_paths: true
45-
- pymdownx.extra
53+
-
54+
toc:
55+
toc_depth: 1
56+
- admonition
57+
- pymdownx.tabbed
58+
- pymdownx.superfences
59+
-
60+
pymdownx.highlight:
61+
linenums: true
62+
linenums_style: inline
63+
-
64+
pymdownx.snippets:
65+
base_path: ./docs/snippets
66+
check_paths: true
67+
- pymdownx.extra

0 commit comments

Comments
 (0)