Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that new pages should be linked to from the global nav #599

Merged
merged 3 commits into from
Feb 24, 2020

Conversation

ryan-blunden
Copy link
Contributor

No description provided.

Copy link
Contributor

@nicksnyder nicksnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if tooling enforced these rules.

@@ -12,7 +12,10 @@ We use the [monthly release blog post](https://about.sourcegraph.com/blog) as a

## Naming and linking documentation pages

1. There is no global index or nav, so all docs should be linked from their parent index page. Every new document should be cross-linked to its related documentation, and linked from its topic-related index, when it exists.
1. All docs should be linked to from their parent index page.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly do you mean by this? Every page in the current directory should be linked to in the first index.md in the directory hierarchy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed this to plain language largely inspired by your question.

1. All docs should be linked to from their parent index page.
1. Every new document should be:
- Cross-linked to its related documentation, and linked from its topic-related index, when it exists.
- Linked to from the [docs global nav template](https://github.com/sourcegraph/sourcegraph/blob/master/doc/_resources/templates/document.html#L58).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is unclear which parts of this document apply to product documentation, handbook documentation or both. This line item is the former I think. Can we clarify this more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm addressing this in #600 (comment)

@ryan-blunden ryan-blunden merged commit 4c9ea7c into master Feb 24, 2020
@ryan-blunden ryan-blunden deleted the rb-docs-page-linking branch February 24, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants