Skip to content

Commit b57bd9f

Browse files
committed
[docs] clean up after migrating some contributions, syntax guide
1 parent 42e22f9 commit b57bd9f

File tree

16 files changed

+57
-23
lines changed

16 files changed

+57
-23
lines changed

docs/_docset.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,19 @@ toc:
2929
- file: index.md
3030
- hidden: 404.md
3131
- hidden: developer-notes.md
32-
- folder: contribute
32+
- hidden: contribute/index.md
33+
- hidden: contribute/locally.md
34+
- hidden: contribute/on-the-web.md
35+
- hidden: contribute/cumulative-docs/index.md
36+
- hidden: contribute/cumulative-docs/guidelines.md
37+
- hidden: contribute/cumulative-docs/badge-placement.md
38+
- hidden: contribute/cumulative-docs/example-scenarios.md
39+
- hidden: contribute/cumulative-docs/reference.md
40+
- folder: how-to
3341
children:
3442
- file: index.md
35-
- file: locally.md
36-
- file: on-the-web.md
3743
- file: move.md
3844
- file: redirects.md
39-
- folder: cumulative-docs
40-
children:
41-
- file: index.md
42-
- hidden: guidelines.md
43-
- hidden: badge-placement.md
44-
- hidden: example-scenarios.md
45-
- hidden: reference.md
4645
- file: branching-strategy.md
4746
- file: add-repo.md
4847
- file: release-new-version.md

docs/_redirects.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ redirects:
2424
'testing/redirects/third-page.md':
2525
anchors:
2626
'removed-anchor':
27+
'contribute/move.md': 'how-to/move.md'
28+
'contribute/redirects.md': 'how-to/redirects.md'
29+
'contribute/branching-strategy.md': 'how-to/branching-strategy.md'
30+
'contribute/add-repo.md': 'how-to/add-repo.md'
31+
'contribute/release-new-version.md': 'how-to/release-new-version.md'

docs/building-blocks/assembled-documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The assembler:
1919

2020
Assembled documentation is configured through the site configuration, which defines:
2121

22-
* [assembler.yml](../configure/site/index.md): Which repositories to include and [their branching strategy](../contribute/branching-strategy.md).
22+
* [assembler.yml](../configure/site/index.md): Which repositories to include and [their branching strategy](../how-to/branching-strategy.md).
2323
* [navigation.yml](../configure/site/index.md): Navigation and url prefixes for TOC's.
2424
* [versions.yml](../configure/site/versions.md): Defines the various versioning schemes of products/solutions being documented.
2525
* [products.yml](../configure/site/products.md): Defines the product catalog (id, name) and ties it to a specific versioning scheme.

docs/building-blocks/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
navigation_title: Building blocks
2+
navigation_title: Core architecture concepts
33
---
44

5-
# Building blocks
5+
# Core architecture concepts and building blocks
66

77
This section explains the core concepts and building blocks that make up the docs-builder architecture. Understanding these concepts will help you work effectively with distributed documentation and cross-repository linking.
88

docs/cli/docset/diff-validate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Gathers the local changes by inspecting the git log, stashed and unstashed chang
44

55
It currently validates the following:
66

7-
* Ensures that renames and deletions are reflected in [redirects.yml](../../contribute/redirects.md).
7+
* Ensures that renames and deletions are reflected in [redirects.yml](../../how-to/redirects.md).
88

99
## Usage
1010

docs/cli/docset/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ locate the `docset.yml` anywhere in the directory tree automatically and build t
2222
## Refactor commands
2323

2424
- [mv](mv.md) - move a file or folder to a new location. This will rewrite all links in all files too.
25-
- [diff validate](diff-validate.md) - validate that local changes are reflected in [redirects.yml](../../contribute/redirects.md)
25+
- [diff validate](diff-validate.md) - validate that local changes are reflected in [redirects.yml](../../how-to/redirects.md)
2626

docs/configure/site/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Configure the documentation site in these files:
1414

1515
## Redirects
1616

17-
Redirects are also configured at the site-level. See [](../../contribute/redirects.md) for more information.
17+
Redirects are also configured at the site-level. See [](../../how-to/redirects.md) for more information.
1818

1919
## Synonyms
2020

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:::{warning}
2-
Some repositories use a [tagged branching strategy](/contribute/branching-strategy.md), which means that their docs are published from a branch that is not `main` or `master`. In these cases, documentation changes need to be made to `main` or `master`, and then backported to the relevant branches.
2+
Some repositories use a [tagged branching strategy](/how-to/branching-strategy.md), which means that their docs are published from a branch that is not `main` or `master`. In these cases, documentation changes need to be made to `main` or `master`, and then backported to the relevant branches.
33

4-
For detailed backporting guidance, refer to the example in [Choose the docs branching strategy for a repository](/contribute/branching-strategy.md#workflow-2-tagged).
4+
For detailed backporting guidance, refer to the example in [Choose the docs branching strategy for a repository](/how-to/branching-strategy.md#workflow-2-tagged).
55

66
To determine the published branches for a repository, find the repository in [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml).
77
:::

docs/contribute/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Elastic Docs contribution guide
1+
2+
# Contribute to docs
23

34
:::{note}
45
👋 This page has moved to [elastic.co/docs](https://www.elastic.co/docs/contribute-docs/).

docs/contribute/add-repo.md renamed to docs/how-to/add-repo.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
navigation_title: "Add a new repo to the docs"
3+
---
4+
15
# Add a new repository to the docs
26

37
Elastic documentation is built from many assembled repositories using `docs-builder assemble`. Adding a new repository requires making the assembly process aware of its existence.
@@ -55,7 +59,7 @@ references:
5559
```
5660

5761
:::{tip}
58-
In this file, you can optionally specify custom branches to deploy docs from, depending on your preferred [branching strategy](/contribute/branching-strategy.md). You might want to change your branching strategy so you can have more control over when content added for a specific release is published.
62+
In this file, you can optionally specify custom branches to deploy docs from, depending on your preferred [branching strategy](/how-to/branching-strategy.md). You might want to change your branching strategy so you can have more control over when content added for a specific release is published.
5963
:::
6064

6165
Then, edit the [`navigation.yml`](https://github.com/elastic/docs-builder/blob/main/config/navigation.yml) file to add the repository to the navigation. Refer to [navigation.yml](../configure/site/navigation.md) for more information.

0 commit comments

Comments
 (0)