Skip to content

Commit cdb7942

Browse files
committed
Resolve relative path issues, update tooling.
1 parent c797671 commit cdb7942

16 files changed

Lines changed: 40 additions & 44 deletions

File tree

docs/en/how-to/contribute/how/build-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
{% block front_matter %}
66

7-
Before you build the documentation, and have a [development environment](dev-environment.md) set up.
7+
Before you build the documentation, and have a [development environment](../how/dev-environment.md) set up.
88

99
{% endblock %}
1010

1111
{% block end_matter %}
1212

13-
Once you have successfully built the docs, you are ready to [write documentation](write-docs.md).
13+
Once you have successfully built the docs, you are ready to [write documentation](../how/write-docs.md).
1414

1515
{% endblock %}

docs/en/how-to/contribute/how/reproduce-issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{% block front_matter %}
66

7-
To begin reproducing an issue, you will need a [development environment](dev-environment.md) set up.
7+
To begin reproducing an issue, you will need a [development environment](../how/dev-environment.md) set up.
88

99
{% endblock %}
1010

docs/en/how-to/contribute/how/submit-pr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
{% if config.extra.website %}
88

9-
Your pull request may require additional content, such as a [change note](change-note.md), before it can be [reviewed](../next/pr-review.md).
9+
Your pull request may require additional content, such as a [change note](../how/change-note.md), before it can be [reviewed](../next/pr-review.md).
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 [reviewed](../next/pr-review.md).
13+
As part of submitting a pull request, you'll need to include a [change note](../how/change-note.md) before it can be [reviewed](../next/pr-review.md).
1414

1515
{% endif %}
1616

docs/en/how-to/contribute/how/write-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
{% block front_matter %}
66

7-
To begin working on code, ensure you have a [development environment](dev-environment.md) set up, and you are [working on a branch](branches.md)
7+
To begin working on code, ensure you have a [development environment](../how/dev-environment.md) set up, and you are [working on a branch](../how/branches.md)
88

99
{% endblock %}
1010

1111
{% block end_matter %}
1212

13-
Once you have everything working, you can [submit a pull request](submit-pr.md) with your changes.
13+
Once you have everything working, you can [submit a pull request](../how/submit-pr.md) with your changes.
1414

1515
{% endblock %}

docs/en/how-to/contribute/how/write-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
{% block front_matter %}
66

7-
Before you begin writing documentation, ensure you are able to [build the documentation](build-docs.md), and you are [working on a branch](branches.md).
7+
Before you begin writing documentation, ensure you are able to [build the documentation](../how/build-docs.md), and you are [working on a branch](../how/branches.md).
88

99
{% endblock %}
1010

1111
{% block end_matter %}
1212

13-
Once you are happy with your new documentation, you can [submit a pull request](submit-pr.md) with your proposed changes.
13+
Once you are happy with your new documentation, you can [submit a pull request](../how/submit-pr.md) with your proposed changes.
1414

1515
{% endblock %}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ dependencies = [
2929
"mistletoe==1.5.1",
3030
"mkdocs-autorefs==1.4.4",
3131
"mkdocs-literate-nav==0.6.3", # DO NOT UPGRADE - Uncertain whether author's move to ProperDocs will cause incompatibility
32-
"mkdocs-macros-plugin @ file:///Users/kattni/BeeWare/mkdocs-macros-plugin",
33-
# "mkdocs-macros-plugin",
32+
"mkdocs-macros-plugin @ git+https://github.com/kattni/mkdocs-macros-plugin@include-dir-multiple-directories",
3433
"mkdocs-material==9.7.6",
3534
"mkdocs-rss-plugin==1.19.0",
3635
"mkdocs==1.6.1", # DO NOT UPGRADE - 2+ is not compatible with anything here

src/beeware_docs_tools/live_serve_en.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def serve_docs(
6666
"mkdocs",
6767
"serve",
6868
"--clean",
69-
# "--livereload",
7069
"--config-file",
7170
str(output_path / "mkdocs.en.yml"),
7271
"--watch",

src/beeware_docs_tools/md_tempdir.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,17 @@ def save_config(project_path, temp_md_path, config, language="en"):
7070

7171
if language != "en":
7272
shared_content_path = temp_md_path.resolve() / f"shared_content/{language}"
73-
local_docs_path = temp_md_path.resolve() / f"docs/{language}"
73+
local_docs_path = temp_md_path.resolve() / f"{language}"
7474
else:
7575
shared_content_path = (Path(__file__).parent / "shared_content/en").resolve()
7676
local_docs_path = (project_path / "docs/en").resolve()
7777

7878
base_path.append(str(shared_content_path))
7979
config["markdown_extensions"]["pymdownx.snippets"]["base_path"] = base_path
80-
print(config["plugins"]["macros"]["include_dir"])
8180
config["plugins"]["macros"]["include_dir"] = [
8281
str(shared_content_path),
8382
str(local_docs_path),
8483
]
85-
print(config["plugins"]["macros"]["include_dir"])
8684

8785
with (temp_md_path / "config.yml").open("w", encoding="utf-8") as config_f:
8886
yaml.dump(config, config_f)

src/beeware_docs_tools/shared_content/en/contribute/what/fix-issue.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,48 @@ Even if you can't fix the problem, reporting anything you discover during the pr
1818

1919
/// details-abstract | Work from a branch
2020

21-
{% include "contribute/how/branches.md" %}
21+
{% include "how-to/contribute/how/branches.md" %}
2222

2323
///
2424

2525
/// details-abstract | Reproduce the issue
2626

27-
{% include "contribute/how/reproduce-issue.md" %}
27+
{% include "how-to/contribute/how/reproduce-issue.md" %}
2828

2929
///
3030

3131
**If fixing the issue requires changes to code:**
3232

3333
/// details-abstract | Write, run, and test code
3434

35-
{% include "contribute/how/write-code.md" %}
35+
{% include "how-to/contribute/how/write-code.md" %}
3636

3737
///
3838

3939
**If fixing the issue requires changes to documentation:**
4040

4141
/// details-abstract | Build documentation
4242

43-
{% include "contribute/how/build-docs.md" %}
43+
{% include "how-to/contribute/how/build-docs.md" %}
4444

4545
///
4646

4747
/// details-abstract | Write documentation
4848

49-
{% include "contribute/how/write-docs.md" %}
49+
{% include "how-to/contribute/how/write-docs.md" %}
5050

5151
///
5252

5353
**When you're ready to submit your contribution:**
5454

5555
/// details-abstract | Add a change note
5656

57-
{% include "contribute/how/change-note.md" %}
57+
{% include "how-to/contribute/how/change-note.md" %}
5858

5959
///
6060

6161
/// details-abstract | Submit a pull request
6262

63-
{% include "contribute/how/submit-pr.md" %}
63+
{% include "how-to/contribute/how/submit-pr.md" %}
6464

6565
///

src/beeware_docs_tools/shared_content/en/contribute/what/implement-feature.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,48 @@ An important part of implementing a new feature is ensuring that feature is full
1515

1616
/// details-abstract | Set up a development environment
1717

18-
{% include "contribute/how/dev-environment.md" %}
18+
{% include "how-to/contribute/how/dev-environment.md" %}
1919

2020
///
2121

2222
/// details-abstract | Work from a branch
2323

24-
{% include "contribute/how/branches.md" %}
24+
{% include "how-to/contribute/how/branches.md" %}
2525

2626
///
2727

2828
/// details-abstract | Avoid scope creep
2929

30-
{% include "contribute/how/scope-creep.md" %}
30+
{% include "how-to/contribute/how/scope-creep.md" %}
3131

3232
///
3333

3434
/// details-abstract | Implement the new feature
3535

36-
{% include "contribute/how/write-code.md" %}
36+
{% include "how-to/contribute/how/write-code.md" %}
3737

3838
///
3939

4040
/// details-abstract | Build documentation
4141

42-
{% include "contribute/how/build-docs.md" %}
42+
{% include "how-to/contribute/how/build-docs.md" %}
4343

4444
///
4545

4646
/// details-abstract | Write documentation
4747

48-
{% include "contribute/how/write-docs.md" %}
48+
{% include "how-to/contribute/how/write-docs.md" %}
4949

5050
///
5151

5252
/// details-abstract | Add a change note
5353

54-
{% include "contribute/how/change-note.md" %}
54+
{% include "how-to/contribute/how/change-note.md" %}
5555

5656
///
5757

5858
/// details-abstract | Submit a pull request
5959

60-
{% include "contribute/how/submit-pr.md" %}
60+
{% include "how-to/contribute/how/submit-pr.md" %}
6161

6262
///

0 commit comments

Comments
 (0)