Skip to content

Commit

Permalink
PR cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Feb 22, 2021
1 parent adc4ffa commit 94fc7aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 72 deletions.
42 changes: 0 additions & 42 deletions packages/docusaurus-theme-classic/codeTranslations/fa.json

This file was deleted.

30 changes: 0 additions & 30 deletions website/docs/guides/docs/docs-markdown-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,3 @@ I am referencing a [document](doc1.md). Reference to another [document in a fold
One benefit of this approach is that the links to external files will still work if you are viewing the file on GitHub.

Another benefit, for versioned docs, is that one versioned doc will link to another doc of the exact same version.


## Referencing blog posts

If you want to reference a blog post file, you could use the name of the post you want to reference.

For example, if you are in `folder/doc1.md` and you want to reference `blog/2021-01-02-hello-there.md`:

```md
---
title: Hello There
---
```

You can add a slug to a blog post in its metadata. Consider another blog post named `blog/2021-01-08-bye-everyone.md`:

```md
---
title: Bye Everyone
slug: bye-everyone
---
```

I am referencing a blog post in `../../blog/2021/01/02/hello-there`.

Reference to another blog post with a slug in `../../blog/bye-everyone`.

:::caution Be careful that we should convert the address of the blog post without slug from:

`blog/2021-01-02-hello-there` to `blog/2021/01/02/hello-there` :::

0 comments on commit 94fc7aa

Please sign in to comment.