Skip to content

Commit

Permalink
chore(deps): update packages (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jo茫o Pedro Schmitz <jpedroschmitz@hotmail.com>
  • Loading branch information
3 people committed Nov 26, 2021
1 parent 0ef266e commit 338f939
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 140 deletions.
5 changes: 2 additions & 3 deletions @rocketseat/gatsby-theme-docs-core/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const { normalizeBasePath, resolveLink } = require(`./util/url`);
const withDefault = require(`./util/with-default`);

function generateRepositoryEditLink(themeOptions, relativePath) {
const { baseDir, docsPath, repositoryUrl, githubUrl, branch } = withDefault(
themeOptions,
);
const { baseDir, docsPath, repositoryUrl, githubUrl, branch } =
withDefault(themeOptions);

const repoUrl = !repositoryUrl && githubUrl ? githubUrl : repositoryUrl;
const pathToFile = path.join(branch, baseDir, docsPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DocsComponent from '../components/Docs';
export default DocsComponent;

export const query = graphql`
query($slug: String!) {
query ($slug: String!) {
mdx(fields: { slug: { eq: $slug } }) {
id
excerpt(pruneLength: 160)
Expand Down
4 changes: 2 additions & 2 deletions @rocketseat/gatsby-theme-docs/src/components/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default function Layout({
const disableTOC =
disableTableOfContents === true || !headings || headings.length === 0;

function handleMenuOpen() {
const handleMenuOpen = () => {
setMenuOpen(!isMenuOpen);
}
};

return (
<Fragment>
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
}
},
"devDependencies": {
"@changesets/changelog-github": "^0.3.0",
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.14.1",
"@commitlint/cli": "12.0.1",
"@commitlint/config-conventional": "12.0.1",
"commitizen": "4.2.3",
"@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4",
"commitizen": "4.2.4",
"cz-conventional-changelog": "3.3.0",
"eslint": "7.23.0",
"eslint": "7.32.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-react": "7.23.1",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-react": "7.25.1",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "5.2.0",
"lint-staged": "10.5.4",
"prettier": "2.2.1"
"prettier": "2.3.2"
}
}
Loading

0 comments on commit 338f939

Please sign in to comment.