Skip to content

Commit

Permalink
Merge pull request #2578 from OctopusDeploy/Markdown-linting
Browse files Browse the repository at this point in the history
Markdown linting
  • Loading branch information
steve-fenton-octopus authored Dec 3, 2024
2 parents e67bc49 + 85d6036 commit 3f94090
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"astro-build.astro-vscode",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
"docsmsft.docs-markdown",
"ms-playwright.playwright",
"streetsidesoftware.code-spell-checker",
"unifiedjs.vscode-mdx"
"unifiedjs.vscode-mdx",
"DavidAnson.vscode-markdownlint"
],
"unwantedRecommendations": []
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
},
"[markdown]": {
},
"markdownlint.run": "onSave",
"markdownlint.config": {
"emphasis": { "style": "asterisk" },
"no-inline-html": false,
"ul-style": { "style": "dash" }
},
}
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# Octopus docs

This repository contains the documentation for [Octopus Deploy](https://octopus.com/docs).

Contributions to help improve this documentation are welcome, however, you must sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/OctopusDeploy/docs) before we can accept your contribution.

See the [Octopus style guide](https://www.octopus.design/932c0f1a9/p/26f741-writing) for information including:

* [Markdown quick reference](https://www.octopus.design/932c0f1a9/p/074e30-markdown-reference)
* [Capitalization](https://www.octopus.design/932c0f1a9/p/457bc4-grammar-rules/t/03e016)
* [Working with images](https://www.octopus.design/932c0f1a9/p/5061d7-working-with-images)
- [Markdown quick reference](https://www.octopus.design/932c0f1a9/p/074e30-markdown-reference)
- [Capitalization](https://www.octopus.design/932c0f1a9/p/457bc4-grammar-rules/t/03e016)
- [Working with images](https://www.octopus.design/932c0f1a9/p/5061d7-working-with-images)

## How to contribute a change to the docs

* The `main` branch has the latest version of the docs
* Fork this repo and create a branch for your changes
* Make the changes you'd like to contribute
* Submit a pull request (PR) to master with your changes and include a comment explaining the changes
* Sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/OctopusDeploy/docs)
* We'll review your PR and accept it or suggest changes
- The `main` branch has the latest version of the docs
- Fork this repo and create a branch for your changes
- Make the changes you'd like to contribute
- Submit a pull request (PR) to master with your changes and include a comment explaining the changes
- Sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/OctopusDeploy/docs)
- We'll review your PR and accept it or suggest changes

### Default values

Expand All @@ -39,7 +41,7 @@ When you raise a pull request, the following checks will take place:

You can run the tests locally using:

```
```bash
pnpm test
```

Expand All @@ -52,7 +54,7 @@ The most common failures are:

You can run the spell check locally using:

```
```bash
pnpm spellcheck
```

Expand Down Expand Up @@ -103,13 +105,13 @@ You can use the Front Matter dashboard to find content, media, and snippets - or

The pages are in the exact page shown on the website, so you can easily translate them. For example:

```
```bash
https://octopus.com/docs/infrastructure/deployment-targets/tentacle
```

Can be found in the exact same path within `src/pages/`

```
```bash
\docs\src\pages\docs\infrastructure\deployment-targets\tentacle
```

Expand All @@ -123,17 +125,17 @@ No page should ever be deleted! When a page moves or is retired, it should be ch

The below shows the complete contents of a redirect page that sends users from:

```
```bash
/docs/administration/authentication/authentication-providers/azure-ad-authentication
```

To the new location:

```
```bash
/docs/security/authentication/azure-ad-authentication
```

```
```yaml
---
layout: src/layouts/Redirect.astro
title: Redirect
Expand Down Expand Up @@ -195,13 +197,15 @@ Within an MDX file, this looks like a code block and will error. Escape the stat
## Switching between spaces \{#switching-between-spaces}
```

MDX files don't allow short-form links, instead of using `<https://example.com>` use `[https://example.com](https://example.com)`, or even better - put in useful link text, like `[example website](https://example.com)`.

## Docs page layout guidelines

### Title icons

If you are updating a page in Docs which doesn't already have a title icon, please add one. Title icons can be added in the frontmatter for each page by adding a Font Awesome class in the `icon` entry:

```
```yaml
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
Expand All @@ -221,7 +225,7 @@ hideInThisSectionHeader: true

Product screenshots used in Docs should reflect the UI in the latest version of Octopus. The `figure` component will automatically add a curved border and outline to your image:

```
```markdown
:::figure
![](/docs/octopus-cloud/images/octopus-cloud-architecture-diagram.png)
:::
Expand All @@ -233,6 +237,6 @@ Images should be uploaded to the folder that relates to the position of the page

Do not use call out / info boxes in the main body of docs pages to reference how features worked in earlier versions of Octopus. This information should be moved to the bottom of docs pages under an 'Older versions' heading. For example, you might add a note like this under the 'Older versions' heading:

```
```markdown
In versions earlier than 2024.x, you'll find the page to add a feed under the Projects menu -> Tenant Variables
```
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"pnpm-lock.yaml",
"docs/credits.md",
".octopus/**",
".vscode/**",
".github/**",
"src/pages/report/**",
"public/docs/js/**",
Expand Down

0 comments on commit 3f94090

Please sign in to comment.