|
1 | | -# BeeWare Test Page |
| 1 | +# BeeWare Docs Tools Demo |
| 2 | + |
| 3 | +## Theme checklist |
| 4 | + |
| 5 | +Things to manually check: |
| 6 | + |
| 7 | +### Titlebar |
| 8 | + |
| 9 | +A medium-gray titlebar is on the page. This the theme template |
| 10 | +has been applied. |
| 11 | + |
| 12 | +### Header and logo icons |
| 13 | + |
| 14 | +The header icon top-left has been rendered. This confirms the template |
| 15 | +can reference external resources. |
| 16 | + |
| 17 | +The logo icon in the left sidebar has been rendered. This confirms the |
| 18 | +sidebar will render properly on the target sites. |
| 19 | + |
| 20 | +### Heading font |
| 21 | + |
| 22 | +Headings are rendered in Cutive. This confirms the BeeWare custom CSS |
| 23 | +theme has been applied. |
| 24 | + |
| 25 | +### Inline Code |
| 26 | + |
| 27 | +Inline code is rendered in the same color as the surrounding font. This |
| 28 | +confirms that the theme has not caused any undesired changes. |
| 29 | + |
| 30 | +This is text with `inline code` here and `inline code` here. |
| 31 | + |
| 32 | +### Tabbed Content Code |
| 33 | + |
| 34 | +Code is in a contrasting color to the background. Copy button should |
| 35 | +copy only the commands; the prompt should not be included. |
| 36 | + |
| 37 | +This confirms that the theme has not caused any undesired changes, |
| 38 | +as well as whether the copy button is working as expected. |
| 39 | + |
| 40 | +/// tab | macOS |
| 41 | + |
| 42 | +``` console |
| 43 | +$ git clone https://github.com/beeware/beeware-theme.git |
| 44 | +``` |
| 45 | + |
| 46 | +/// |
| 47 | + |
| 48 | +/// tab | Linux |
| 49 | + |
| 50 | +``` console |
| 51 | +$ git clone https://github.com/beeware/beeware-theme.git |
| 52 | +``` |
| 53 | + |
| 54 | +/// |
| 55 | + |
| 56 | +/// tab | Windows |
| 57 | + |
| 58 | +``` doscon |
| 59 | +C:\...>git clone https://github.com/beeware/beeware-theme.git |
| 60 | +``` |
| 61 | + |
| 62 | +/// |
| 63 | + |
| 64 | +### Code copy button behavior |
| 65 | + |
| 66 | +The copy button on the following codeblock should result in `from pathlib |
| 67 | +import Path` being copied to the clipboard. |
| 68 | + |
| 69 | +```python |
| 70 | +from pathlib import Path |
| 71 | +``` |
| 72 | + |
| 73 | +The copy button on the following codeblock should result in `ls |
| 74 | +beeware-docs-tools` being copied to the clipboard. The shell prompt and |
| 75 | +the output should not be included. |
| 76 | + |
| 77 | +```console |
| 78 | +(venv) $ ls beeware-docs-tools |
| 79 | +_build locales requirements.dev.txt tox.ini |
| 80 | +docs pyproject.toml requirements.docs.txt |
| 81 | +LICENSE README.md src |
| 82 | +``` |
| 83 | + |
| 84 | +### Sidebar links |
| 85 | + |
| 86 | +Sidebar links exist, and point to the `beeware-docs-tools` repo. This |
| 87 | +confirms that the sidebar content has been loaded, and the `project-name` |
| 88 | +has been set in the MkDocs configuration file. |
| 89 | + |
| 90 | +### Link colors |
| 91 | + |
| 92 | +This link to [the main BeeWare website](https://beeware.org) should be blue |
| 93 | +in *both* light mode and dark mode. |
| 94 | + |
| 95 | +The links in the left and right sidebars should also be blue in both modes. |
| 96 | + |
| 97 | +When scrolling down the page, the active header link in the right sidebar |
| 98 | +should be light blue in dark mode, and darker blue in light mode. |
| 99 | + |
| 100 | +### Translation Admonition |
| 101 | + |
| 102 | +The English-language version of this document should show the "Translations |
| 103 | +are available" admonition below. The French translation should show the "This is |
| 104 | +a machine translation!" admonition. The German translation should show the |
| 105 | +"This is a translation!" admonition for human translations. |
| 106 | + |
| 107 | +{% if config.extra.translation_type == "original" %} |
| 108 | + |
| 109 | +/// admonition | Translations are available |
| 110 | + |
| 111 | +If you're not comfortable with English, translations of the Docs Tools |
| 112 | +are available in Français and Deutsch. |
| 113 | + |
| 114 | +/// |
| 115 | + |
| 116 | +{% endif %} |
| 117 | + |
| 118 | +{% if config.extra.translation_type == "machine" %} |
| 119 | + |
| 120 | +/// admonition | This is a machine translation! |
| 121 | + |
| 122 | +This version of the tutorial has been generated by machine translation. |
| 123 | +We know this isn't ideal, but we felt that a bad translation was better |
| 124 | +than no translation at all. |
| 125 | + |
| 126 | +/// |
| 127 | + |
| 128 | +{% endif %} |
| 129 | + |
| 130 | +{% if config.extra.translation_type == "human" %} |
| 131 | + |
| 132 | +/// admonition | This is a translation! |
| 133 | + |
| 134 | +This document is a translation of the English version. The translation |
| 135 | +has been reviewed by humans, but newer sections may be generated by |
| 136 | +machine translation, or not translated at all. |
| 137 | + |
| 138 | +/// |
| 139 | + |
| 140 | +{% endif %} |
| 141 | + |
| 142 | +### Custom 404 page |
| 143 | + |
| 144 | +Add `nopage` to the end of the URL in your browser to verify the 404 |
| 145 | +page contains two flying bees, and the text "Brutus can't find what |
| 146 | +you're looking for" below. |
| 147 | + |
| 148 | +*MkDocs builds fail with unrecognized internal links, so you need to |
| 149 | +manually verify this check by modifying the URL in your browser.* |
| 150 | + |
| 151 | +### Next Checks |
| 152 | + |
| 153 | +The following link should take you to BeeWare Docs Tools Demo Section |
| 154 | +One. It is included to verify cross-page linking. |
| 155 | + |
| 156 | +Navigate to [BeeWare Docs Tools Demo Section One](section_one/index.md) for the |
| 157 | +next checks. |
0 commit comments