Skip to content

Commit 7556551

Browse files
kattnifreakboy3742
andauthored
Guide tweaks needed for Toga (#137)
Co-authored-by: Russell Keith-Magee <[email protected]>
1 parent 76d8798 commit 7556551

File tree

23 files changed

+178
-176
lines changed

23 files changed

+178
-176
lines changed

docs/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ markdown_extensions:
9494
permalink: true
9595
title: On this page
9696
attr_list: {}
97+
admonition: {} # Enabled for all admonition types EXCEPT note and admonition (which defaults to note)
9798

9899
plugins:
99100
search: {}

docs/en/content_test_bed/how-to/contribute/how/submit_pr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Your pull request may require additional content, such as a [change note](change
1010

1111
{% else %}
1212

13-
As part of submitting a pull request, you'll need to include a [change note](change_note.md) before it can be [the reviewed](../next/pr_review.md).
13+
As part of submitting a pull request, you'll need to include a [change note](change_note.md) before it can be [reviewed](../next/pr_review.md).
1414

1515
{% endif %}
1616

src/beeware_docs_tools/shared_content/en/contribute/how/build_docs.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ You **must** have a Python {{ docs_python_version }} interpreter installed and a
1111

1212
To support rapid editing of documentation, {{ formal_name }} has a "live preview" mode.
1313

14-
/// admonition | The live preview will build with warnings!
15-
type: warning
14+
<!-- rumdl-disable MD031 MD046 -->
15+
!!! warning "The live preview will build with warnings!"
1616

17-
The live serve is available for iterating on your documentation updates. While you're in the process of updating things, you may introduce a markup issue. Issues considered a `WARNING` will cause a standard build to fail, however, the live serve is set up to indicate warnings in the console output, while continuing to build. This allows you to iterate without needing to restart the live preview.
17+
The live serve is available for iterating on your documentation updates. While you're in the process of updating things, you may introduce a markup issue. Issues considered a `WARNING` will cause a standard build to fail, however, the live serve is set up to indicate warnings in the console output, while continuing to build. This allows you to iterate without needing to restart the live preview.
1818

19-
A `WARNING` is different from an `ERROR`. If you introduce an issue that is considered an `ERROR`, the live serve will fail, and require a restart. It will not start up again until the `WARNING` issue is resolved.
20-
21-
///
19+
A `WARNING` is different from an `ERROR`. If you introduce an issue that is considered an `ERROR`, the live serve will fail, and require a restart. It will not start up again until the `WARNING` issue is resolved.
20+
<!-- rumdl-enable MD031 MD046 -->
2221

2322
To start the live server:
2423

src/beeware_docs_tools/shared_content/en/contribute/how/dev_environment.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ If you have more than one version of Python installed, you may need to replace `
2323
We recommend avoiding recently released version of Python (i.e., versions that have a ".0" or ".1" micro version number, like e.g., 3.14.0). This is because the tools needed to support Python on macOS often lag usually aren't available for recently released stable Python versions.
2424

2525
{% block prerequisites_macos %}
26-
2726
{% endblock %}
2827

2928
{% if not config.extra.macos_only %}
@@ -45,7 +44,6 @@ If you have more than one version of Python installed, you may need to replace `
4544
We recommend avoiding recently released version of Python (i.e., versions that have a ".0" or ".1" micro version number, like e.g., 3.14.0). This is because the tools needed to support Python on Linux often lag usually aren't available for recently released stable Python versions.
4645

4746
{% block prerequisites_linux %}
48-
4947
{% endblock %}
5048

5149
///
@@ -65,7 +63,6 @@ If you have more than one version of Python installed, you may need to replace t
6563
We recommend avoiding recently released version of Python (i.e., versions that have a ".0" or ".1" micro version number, like e.g., 3.14.0). This is because the tools needed to support Python on Windows often lag usually aren't available for recently released stable Python versions.
6664

6765
{% block prerequisites_windows %}
68-
6966
{% endblock %}
7067

7168
///

src/beeware_docs_tools/shared_content/en/contribute/how/propose_feature.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ Once the discussion has reached a consensus on the form of a feature, you can cr
2929
You don't have to implement your feature proposal yourself; you can open an issue with the details of what you're proposing. However, simply posting the issue doesn't mean it's going to be implemented for you. You'll need to wait for it to potentially get picked up by someone else interested in the same feature, whether that means another community member or the core team; however this is not guaranteed to happen. If you want the guarantee implementation, you'll need to implement it yourself, or pay someone else to implement it for you.
3030

3131
{% block end_matter %}
32-
3332
{% endblock %}

src/beeware_docs_tools/shared_content/en/contribute/how/submit_pr.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,11 @@ If you've previously pushed the current branch to GitHub, you won't receive the
239239

240240
Any of these options will enable you to create your new pull request.
241241

242-
/// admonition | The GitHub CLI: `gh`
243-
type: info
242+
<!-- rumdl-disable MD031 -->
243+
!!! info "The GitHub CLI: `gh`"
244244

245-
GitHub provides the [GitHub CLI](https://cli.github.com/), which gives you access to many of the features of GitHub from your terminal, through the `gh` command. The [GitHub CLI documentation](https://cli.github.com/manual/) covers all the features.
246-
247-
///
245+
GitHub provides the [GitHub CLI](https://cli.github.com/), which gives you access to many of the features of GitHub from your terminal, through the `gh` command. The [GitHub CLI documentation](https://cli.github.com/manual/) covers all the features.
246+
<!-- rumdl-enable MD031 -->
248247

249248
### Pull request content
250249

@@ -281,5 +280,4 @@ We have limited CI resources. It is important to understand that every time you
281280
The process of submitting your PR is not done until it's passing CI, or you can provide an explanation for why it's not.
282281

283282
{% block end_matter %}
284-
285283
{% endblock %}

src/beeware_docs_tools/shared_content/en/contribute/how/write_code.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fixing a bug or implementing a feature will require you to write some new code.
66

77
We have a [code style guide](../style/code_style_guide.md) that outlines our guidelines for writing code for BeeWare.
88

9-
#### Test-driven development
9+
### Test-driven development
1010

1111
A good way to ensure your code is going to do what you expect it to, is to first write a test case to test for it. This test case should fail initially, as the code it is testing for is not yet present. You can then write the code changes needed to make the test pass, and know that what you've written is solving the problem you are expecting it to.
1212

@@ -78,12 +78,11 @@ The full test suite can take a while to run. You can speed it up considerably by
7878

7979
{% if not config.extra.hide_coverage %}
8080

81-
As with the full test suite, and the core, this should report [100% test coverage][code-coverage].
81+
In addition to the tests passing, this should report [100% test coverage][code-coverage].
8282

8383
{% endif %}
8484

8585
{% block testing_running_additional %}
86-
8786
{% endblock %}
8887

8988
### Running test variations
@@ -165,7 +164,6 @@ By default, `tox` will run all tests in the unit test suite. When you're develop
165164
{% endif %}
166165

167166
{% block testing_subset_additional %}
168-
169167
{% endblock %}
170168

171169
{% if not config.extra.hide_coverage %}
@@ -395,7 +393,6 @@ A HTML coverage report can be generated by appending `-html` to any of the cover
395393
{% endif %}
396394

397395
{% block testing_additional %}
398-
399396
{% endblock %}
400397

401398
### It's not just about writing tests!

src/beeware_docs_tools/shared_content/en/contribute/next/pr_review.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ Congratulations! You've just made a contribution to {{ formal_name }}!
1919

2020
After submitting your pull request, you'll need to wait for a review of your contribution. There are two sides to the review process: providing a review and receiving a review.
2121

22-
/// admonition | Review expectations
23-
type: info
22+
!!! info "Review expectations"
2423

25-
You should expect anyone reviewing your submissions to follow these guidelines, including reviews from members of the core team. You should also follow these guidelines when you are reviewing submissions from others.
24+
You should expect anyone reviewing your submissions to follow these guidelines, including reviews from members of the core team. You should also follow these guidelines when you are reviewing submissions from others.
2625

27-
If you feel your reviewer is straying from these expectations, and you feel comfortable raising the issue yourself on the pull request, you can do so. If you don't feel comfortable, please reach out to the [BeeWare Code of Conduct Response Team](https://beeware.org/bee/coc). We will review your report, and follow up with your reviewer. The follow-up will reflect the reported action; a minor transgression may result in a discussion, whereas a major violation may result in something more serious.
28-
29-
///
26+
If you feel your reviewer is straying from these expectations, and you feel comfortable raising the issue yourself on the pull request, you can do so. If you don't feel comfortable, please reach out to the [BeeWare Code of Conduct Response Team](https://beeware.org/bee/coc). We will review your report, and follow up with your reviewer. The follow-up will reflect the reported action; a minor transgression may result in a discussion, whereas a major violation may result in something more serious.
3027

3128
## Providing a review
3229

@@ -62,25 +59,19 @@ If the initial review reveals a significant number of problems, the first review
6259

6360
Your reviewer will post comments to your pull request. These comments can be general, on a specific file, or on a specific line or lines of code. They will sometimes include directly suggested changes that you can apply to your pull request through the GitHub UI. Typically, they will be questions, requests for clarification, or guidance on updates.
6461

65-
/// admonition | Marking a conversation as resolved
66-
type: info
67-
68-
During the discussion part of the feedback process, you should never mark a conversation started by your reviewer as "resolved". Marking the conversation as resolved is the responsibility of the reviewer. It's up to them to determine whether the identified problem has been solved.
62+
!!! info "Marking a conversation as resolved"
6963

70-
///
64+
During the discussion part of the feedback process, you should never mark a conversation started by your reviewer as "resolved". Marking the conversation as resolved is the responsibility of the reviewer. It's up to them to determine whether the identified problem has been solved.
7165

7266
If the review reveals a systematic problem (e.g., a naming inconsistency that exists in the code), the reviewer may not highlight every instance of that problem. Instead, they may pick a couple of examples of the problem, and indicate that other instances should also be corrected. If a review highlights a problem in once place, and you think it might apply elsewhere, you should fix that problem wherever it occurs. If you're unsure, ask for clarification from your reviewer.
7367

7468
#### Submit all requested changes
7569

7670
Once you've worked through all the requested changes, you can push an update to your pull request. This will trigger a new CI run; once you have confirmed that CI is still passing, post a comment requesting an updated review and the core team will take another look at your pull request.
7771

78-
/// admonition | Push, don't force or rebase
79-
type: info
80-
81-
When you're updating your pull request during a review, it is important to leave the commit history intact. It doesn't matter if there's a huge list of commits; they are all squashed when we merge the pull request. If you force push or rebase your pull request in the middle of a review, you may be removing important context needed by your reviewer.
72+
!!! info "Push, don't force or rebase"
8273

83-
///
74+
When you're updating your pull request during a review, it is important to leave the commit history intact. It doesn't matter if there's a huge list of commits; they are all squashed when we merge the pull request. If you force push or rebase your pull request in the middle of a review, you may be removing important context needed by your reviewer.
8475

8576
#### Re-request a review
8677

src/beeware_docs_tools/shared_content/en/contribute/style/code_style_guide.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Keep in mind that the most important part of PEP 8 is [Section 0: A Foolish Cons
99
We follow US spelling for API naming, variables, etc.
1010

1111
{% block code_style %}
12-
1312
{% endblock %}
1413

1514
### Things to avoid

src/beeware_docs_tools/shared_content/en/contribute/style/docs_style_guide.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,19 @@ Note text here.
206206
Content below.
207207
```
208208

209-
When applying any of the other [supported admonition types](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#supported-types), you add a `type` directive below the title line, formatted as follows:
209+
When using any of the other [supported admonition types](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#supported-types), you'll use the following format. Ensure the admonition content is tabbed over four spaces, as follows:
210210

211+
<!-- rumdl-disable MD031 -->
211212
```markdown
212213
Content above.
213214

214-
/// admonition | Info title
215-
type: info
216-
217-
Info text here.
215+
!!! info "Info title"
218216

219-
///
217+
Info text here.
220218

221219
Content below.
222220
```
221+
<!-- rumdl-disable MD031 -->
223222

224223
Supported types include: abstract, info, tip, success, question, warning, failure, danger, bug, example, and quote.
225224

0 commit comments

Comments
 (0)