You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This section is included for the purposes of verifying the shared content provided from this repo for use in the rest of the BeeWare documentation. "Shared content" refers to documents or sections of documents that are common to multiple other repos. They are stored here for inclusion across those repos. This means there is a single source when updates are required, and that change will populate across all repos using that shared content.
4
+
5
+
If you are updating existing content, the following steps are not necessary. You can simply build the test site, and see your updates rendered.
6
+
7
+
If you are creating a new shared documentation file in the `shared-content` directory, complete the following:
8
+
9
+
1. Create a file in the `content_test_bed` that is the same filename as your new content file, with "_include" appended to the end.
10
+
* For `style_guide.md`, you would add `style_guide_include.md`.
11
+
2. Using the Snippets syntax, add the filename to `filename_include.md`. The Snippets syntax for including content is `-8<- "filename.md"`.
12
+
* For `style_guide.md`, you would add `-8<- "style_guide.md"` to `style_guide_include.md`.
13
+
3. Update the `Shared content test bed` section in `/docs/SUMMARY.md` to include the new `_include` file and path, at the same indentation level as the other items in that section.
14
+
* For `style_guide_include.md`, you would add `- [Style guide](content_test_bed/style_guide_include.md)`.
15
+
16
+
Once these steps are completed, you can build the test site and view your new documentation rendered.
Copy file name to clipboardExpand all lines: docs/en/index.md
+21-57Lines changed: 21 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,49 +2,37 @@
2
2
3
3
## Theme checklist
4
4
5
-
This demo is designed to test the various features of the BeeWare
6
-
MkDocs Material theme overrides. Please read through and verify
7
-
that everything listed on this and the following pages is present
8
-
and functioning as detailed in the description.
5
+
This demo is designed to test the various features of the BeeWare MkDocs Material theme overrides. Please read through and verify that everything listed on this and the following pages is present and functioning as detailed in the description.
9
6
10
7
## Titlebar
11
8
12
-
A medium-gray titlebar is on the page. This the theme template
13
-
has been applied.
9
+
A medium-gray titlebar is on the page. This the theme template has been applied.
14
10
15
11
## Header icon
16
12
17
-
The header icon top-left has been rendered. This confirms the template
18
-
can reference external resources.
13
+
The header icon top-left has been rendered. This confirms the template can reference external resources.
19
14
20
15
## Homepage sidebar icon
21
16
22
-
The logo icon in the left sidebar has been rendered. The logo should be
23
-
the width of, and of equal height to, the sidebar. The site title should
24
-
be rendered below it in slightly larger font than the rest of the
25
-
sidebar, with the version number below it in smaller font.
17
+
The logo icon in the left sidebar has been rendered. The logo should be the width of, and of equal height to, the sidebar. The site title should be rendered below it in slightly larger font than the rest of the sidebar, with the version number below it in smaller font.
26
18
27
19
This confirms the sidebar will render properly on the target sites.
28
20
29
21
## Heading font
30
22
31
-
Headings are rendered in Cutive. This confirms the BeeWare custom CSS
32
-
theme has been applied.
23
+
Headings are rendered in Cutive. This confirms the BeeWare custom CSS theme has been applied.
33
24
34
25
## Inline code
35
26
36
-
Inline code is rendered in the same color as the surrounding font. This
37
-
confirms that the theme has not caused any undesired changes.
27
+
Inline code is rendered in the same color as the surrounding font. This confirms that the theme has not caused any undesired changes.
38
28
39
29
This is text with `inline code` here and `inline code` here.
40
30
41
31
## Tabbed content code
42
32
43
-
Code is in a contrasting color to the background. Copy button should
44
-
copy only the commands; the prompt should not be included.
33
+
Code is in a contrasting color to the background. Copy button should copy only the commands; the prompt should not be included.
45
34
46
-
This confirms that the theme has not caused any undesired changes,
47
-
as well as whether the copy button is working as expected.
35
+
This confirms that the theme has not caused any undesired changes, as well as whether the copy button is working as expected.
The copy button on the following codeblock should result in `from pathlib
76
-
import Path` being copied to the clipboard.
63
+
The copy button on the following codeblock should result in `from pathlib import Path` being copied to the clipboard.
77
64
78
65
```python
79
66
from pathlib import Path
80
67
```
81
68
82
-
The copy button on the following codeblock should result in `ls
83
-
beeware-docs-tools` being copied to the clipboard. The shell prompt and
84
-
the output should not be included.
69
+
The copy button on the following codeblock should result in `ls beeware-docs-tools` being copied to the clipboard. The shell prompt and the output should not be included.
85
70
86
71
```console
87
72
(venv) $ ls beeware-docs-tools
@@ -92,37 +77,25 @@ LICENSE README.md src
92
77
93
78
## Sidebar links
94
79
95
-
Sidebar links exist, and point to the `beeware-docs-tools` repo. This
96
-
confirms that the sidebar content has been loaded, and the `project-name`
97
-
has been set in the MkDocs configuration file, and the version number is
98
-
computed and added.
80
+
Sidebar links exist, and point to the `beeware-docs-tools` repo. This confirms that the sidebar content has been loaded, and the `project-name` has been set in the MkDocs configuration file, and the version number is computed and added.
99
81
100
82
## Link colors
101
83
102
-
This link to [the main BeeWare website](https://beeware.org) should be blue
103
-
in *both* light mode and dark mode.
84
+
This link to [the main BeeWare website](https://beeware.org) should be blue in *both* light mode and dark mode.
104
85
105
86
The links in the left and right sidebars should also be blue in both modes.
106
87
107
-
When scrolling down the page, the active header link in the right sidebar
108
-
should be light blue in dark mode, and darker blue in light mode.
88
+
When scrolling down the page, the active header link in the right sidebar should be light blue in dark mode, and darker blue in light mode.
109
89
110
90
## Translation admonition
111
91
112
-
The English-language version of this document should show the "Translations
113
-
are available" admonition below. The French translation should show the "This is
114
-
a machine translation!" admonition. The German translation should show the
115
-
"This is a translation!" admonition for human translations.
92
+
The English-language version of this document should show the "Translations are available" admonition below. The French translation should show the "This is a machine translation!" admonition. The German translation should show the "This is a translation!" admonition for human translations.
116
93
117
94
{% if config.extra.translation_type == "original" %}
118
95
119
96
/// admonition | Translations are available
120
97
121
-
If you're not comfortable with English, translations of the Docs Tools
If you're not comfortable with English, translations of the Docs Tools are available in [Français](https://beeware-docs-tools.readthedocs.io/fr/latest/) and [Deutsch](https://beeware-docs-tools.readthedocs.io/de/latest/).
126
99
127
100
///
128
101
@@ -132,9 +105,7 @@ and
132
105
133
106
/// admonition | This is a machine translation!
134
107
135
-
This version of the tutorial has been generated by machine translation.
136
-
We know this isn't ideal, but we felt that a bad translation was better
137
-
than no translation at all.
108
+
This version of the tutorial has been generated by machine translation. We know this isn't ideal, but we felt that a bad translation was better than no translation at all.
138
109
139
110
///
140
111
@@ -144,27 +115,20 @@ than no translation at all.
144
115
145
116
/// admonition | This is a translation!
146
117
147
-
This document is a translation of the English version. The translation
148
-
has been reviewed by humans, but newer sections may be generated by
149
-
machine translation, or not translated at all.
118
+
This document is a translation of the English version. The translation has been reviewed by humans, but newer sections may be generated by machine translation, or not translated at all.
150
119
151
120
///
152
121
153
122
{% endif %}
154
123
155
124
## Custom 404 page
156
125
157
-
Add `nopage` to the end of the URL in your browser to verify the 404
158
-
page contains two flying bees, and the text "Brutus can't find what
159
-
you're looking for" below.
126
+
Add `nopage` to the end of the URL in your browser to verify the 404 page exists, and includes the text "Brutus can't find what you're looking for". The current 404 page does not always render the images due to an issue with MkDocs.
160
127
161
-
*MkDocs builds fail with unrecognized internal links, so you need to
162
-
manually verify this check by modifying the URL in your browser.*
128
+
*MkDocs builds fail with unrecognized internal links, so you need to manually verify this check by modifying the URL in your browser.*
163
129
164
130
## Next checks
165
131
166
-
The following link should take you to BeeWare Docs Tools Demo Section
167
-
One. It is included to verify cross-page linking.
132
+
The following link should take you to BeeWare Docs Tools Demo Section One. It is included to verify cross-page linking.
168
133
169
-
Navigate to [BeeWare Docs Tools Demo Section One](section_one/index.md) for the
170
-
next checks.
134
+
Navigate to [BeeWare Docs Tools Demo Section One](section_one/index.md) for the next checks.
Copy file name to clipboardExpand all lines: docs/en/section_one/index.md
+3-10Lines changed: 3 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,19 @@
2
2
3
3
## Non-homepage sidebar logo
4
4
5
-
The logo icon in the left sidebar should be small on all pages other than the
6
-
homepage. The site title and version number should be rendered next to it with
7
-
the site title in slightly larger font, and the version number in smaller font.
5
+
The logo icon in the left sidebar should be small on all pages other than the homepage. The site title and version number should be rendered next to it with the site title in slightly larger font, and the version number in smaller font.
8
6
9
7
This verifies that the theme is being properly applied.
10
8
11
9
## Include external markdown from a local file
12
10
13
-
The following section should have only a header, and a paragraph with inline code
14
-
followed by a code block. There should be no text between the code block and the
15
-
next header. This verifies that the external include extension is working with
16
-
local files.
11
+
The following section should have only a header, and a paragraph with inline code followed by a code block. There should be no text between the code block and the next header. This verifies that the external include extension is working with local files.
17
12
18
13
-8<- "include_content.md:local-content"
19
14
20
15
## Include external markdown from a URL
21
16
22
-
The following section should have only a header, some text and a Markdown list.
23
-
This verifies that the external include extension is working, and that
24
-
`url_download` is enabled.
17
+
The following section should have only a header, some text and a Markdown list. This verifies that the external include extension is working, and that `url_download` is enabled.
Navigation should render at the bottom of the page; "BeeWare Docs Tools Demo
6
-
Section One" should be on the left, "Section Two" should be on the right.
7
-
The footer should be below the navigation links. This confirms the theme
8
-
configuration has been applied.
5
+
Navigation should render at the bottom of the page; "BeeWare Docs Tools Demo Section One" should be on the left, "Section Two" should be on the right. The footer should be below the navigation links. This confirms the theme configuration has been applied.
9
6
10
-
###Class reference documentation
7
+
## Class reference documentation
11
8
12
-
The following should show the reference documentation for the `DocsTest`
13
-
class, located in `docs_test.py`, in the `src/beeware_docs_tools`
14
-
directory. This verifies that the source code directory symlinking is
15
-
working properly.
9
+
The following should show the reference documentation for the `DocsTest` class, located in `docs_test.py`, in the `src/beeware_docs_tools` directory. This verifies that the source code directory symlinking is working properly.
0 commit comments