Skip to content

Commit

Permalink
Linting docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed May 24, 2020
1 parent dcec8e8 commit 65462b8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
50 changes: 25 additions & 25 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ module.exports = {
"title": "Dynamoose",
"logo": {
"alt": "Logo",
"src": "img/logo.svg",
"src": "img/logo.svg"
},
"links": [
{
"href": "https://github.com/dynamoose/dynamoose",
"label": "GitHub",
"position": "right",
"position": "right"
},
{
"href": "https://www.npmjs.com/package/dynamoose",
"label": "NPM",
"position": "right",
},
],
"position": "right"
}
]
},
"footer": {
"style": "dark",
Expand All @@ -32,42 +32,42 @@ module.exports = {
"items": [
{
"label": "GitHub",
"href": "https://github.com/dynamoose/dynamoose",
"href": "https://github.com/dynamoose/dynamoose"
},
{
"label": "Slack",
"href": "https://join.slack.com/t/dynamoose/shared_invite/enQtODM4OTI0MTc1NDc3LWI3MmNhMThmNmJmZDk5MmUxOTZmMGEwNGQzNTRkMjhjZGJlNGM5M2JmZjMzMzlkODRhMGY3MTQ5YjQ2Nzg3YTY",
"href": "https://join.slack.com/t/dynamoose/shared_invite/enQtODM4OTI0MTc1NDc3LWI3MmNhMThmNmJmZDk5MmUxOTZmMGEwNGQzNTRkMjhjZGJlNGM5M2JmZjMzMzlkODRhMGY3MTQ5YjQ2Nzg3YTY"
},
{
"label": "Twitter",
"href": "https://twitter.com/dynamoosejs",
"href": "https://twitter.com/dynamoosejs"
},
{
"label": "Stack Overflow",
"href": "https://stackoverflow.com/questions/tagged/dynamoose",
"href": "https://stackoverflow.com/questions/tagged/dynamoose"
}
],
]
},
{
"title": "Other Resources",
"items": [
{
"label": "Contributing Guidelines",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CONTRIBUTING.md",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CONTRIBUTING.md"
},
{
"label": "Code of Conduct",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CODE_OF_CONDUCT.md",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CODE_OF_CONDUCT.md"
},
{
"label": "Changelog",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CHANGELOG.md",
"href": "https://github.com/dynamoose/dynamoose/blob/master/CHANGELOG.md"
},
{
"label": "License",
"href": "https://github.com/dynamoose/dynamoose/blob/master/LICENSE",
"href": "https://github.com/dynamoose/dynamoose/blob/master/LICENSE"
}
],
]
},
{
"title": "Infrastructure Providers",
Expand All @@ -77,13 +77,13 @@ module.exports = {
"href": "https://vercel.com/?utc_source=dynamoose"
}
]
},
],
}
]
},
"algolia": {
"apiKey": "ad8f45e217e480b02545037bf3c58887",
"indexName": "dynamoosejs",
},
"indexName": "dynamoosejs"
}
},
"presets": [
[
Expand All @@ -95,12 +95,12 @@ module.exports = {
"editUrl": "https://github.com/dynamoose/dynamoose/edit/master/docs",
"remarkPlugins": [
require("./src/plugins/remark-npm2yarn")
],
]
},
"theme": {
"customCss": require.resolve("./src/css/custom.css"),
},
},
],
],
"customCss": require.resolve("./src/css/custom.css")
}
}
]
]
};
2 changes: 1 addition & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ module.exports = {
"Other": [
"other/FAQ"
]
},
}
};
14 changes: 7 additions & 7 deletions docs/src/plugins/remark-npm2yarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ const transformNode = (node) => {
return [
{
"type": "jsx",
"value": `<Tabs groupId="packageManager" defaultValue="npm" values={[{label: "npm", value: "npm"}, {label: "Yarn", value: "yarn"}]}><TabItem value="npm">`,
"value": "<Tabs groupId=\"packageManager\" defaultValue=\"npm\" values={[{label: \"npm\", value: \"npm\"}, {label: \"Yarn\", value: \"yarn\"}]}><TabItem value=\"npm\">"
},
{
"type": node.type,
"lang": node.lang,
"value": npmCode,
"value": npmCode
},
{
"type": "jsx",
"value": `</TabItem>\n<TabItem value="yarn">`,
"value": "</TabItem>\n<TabItem value=\"yarn\">"
},
{
"type": node.type,
"lang": node.lang,
"value": yarnCode,
"value": yarnCode
},
{
"type": "jsx",
"value": "</TabItem>\n</Tabs>",
},
"value": "</TabItem>\n</Tabs>"
}
];
};

const matchNode = (node) => node.type === "code" && node.meta === "npm2yarn";
const nodeForImport = {
"type": "import",
"value": `import Tabs from "@theme/Tabs";\nimport TabItem from "@theme/TabItem";`,
"value": "import Tabs from \"@theme/Tabs\";\nimport TabItem from \"@theme/TabItem\";"
};

module.exports = () => {
Expand Down

0 comments on commit 65462b8

Please sign in to comment.