Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed May 22, 2019
1 parent 6d7818c commit ef84f36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`mdToHtmlify transform link even in subdirectory 1`] = `
Test subdirectory file
### Replace this
- [doc3](/docs/subdir/doc3.html)
- [doc3](/docs/subdir/doc3)
"
`;

Expand Down Expand Up @@ -33,17 +33,17 @@ exports[`mdToHtmlify transform to correct link 1`] = `
"
### Existing Docs
- [doc1](/docs/en/next/doc1.html)
- [doc2](/docs/en/next/doc2.html)
- [doc1](/docs/en/next/doc1)
- [doc2](/docs/en/next/doc2)
### Non-existing Docs
- [hahaha](hahaha.md)
## Repeating Docs
- [doc1](/docs/en/next/doc1.html)
- [doc2](/docs/en/next/doc2.html)
- [doc1](/docs/en/next/doc1)
- [doc2](/docs/en/next/doc2)
## Do not replace this
\`\`\`md
Expand Down Expand Up @@ -84,8 +84,8 @@ console.log(\\"[image2][image2]\\");
const testStr = \`![image3][image3]\`;
\`\`\`
[doc1]: /docs/en/next/doc1.html
[doc2]: /docs/en/next/doc2.html
[doc1]: /docs/en/next/doc1
[doc2]: /docs/en/next/doc2
[hahaha]: hahaha.md
[image1]: assets/image1.png
[image2]: assets/image2.jpg
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-1.x/lib/server/__tests__/docs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('mdToHtmlify', () => {
const siteConfig = {
baseUrl: '/',
docsUrl: 'docs',
cleanUrl: true,
};
const mdToHtml = metadataUtils.mdToHtml(Metadata, siteConfig);

Expand Down
6 changes: 3 additions & 3 deletions website-1.x/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const siteConfig = {
users,
editUrl: 'https://github.com/facebook/docusaurus/edit/master/docs/',
headerLinks: [
{doc: 'installation', label: 'Docu'},
{doc: 'installation', label: 'Docs'},
{href: '/docs/en/next/tutorial-setup', label: 'Tutorial'},
{page: 'users', label: 'Use'},
{blog: true, label: 'Blox'},
{page: 'users', label: 'Users'},
{blog: true, label: 'Blog'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
Expand Down

0 comments on commit ef84f36

Please sign in to comment.