-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from morganstanley/docs-update
Update documentation static site generator
- Loading branch information
Showing
28 changed files
with
15,851 additions
and
8,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
export const versions = ['1.0', '2.0']; | ||
|
||
export const slug = '/documentation/2.0/components/'; | ||
|
||
export const allDocs = [ | ||
{ | ||
id: '2a252835-849d-5e11-9b71-a4a18defc55b', | ||
excerpt: | ||
'Quick Start Install the latest version of Node.js, clone this repo and then:\n\nTo create a build locally:\n\nConfiguration\n\nThis static site…', | ||
frontmatter: { | ||
title: 'Development', | ||
}, | ||
internal: { | ||
contentFilePath: | ||
'/Users/mimiflynn/Projects/MS/ms-gh-pages/site/content/documentation/intro-doc.mdx', | ||
}, | ||
fields: { | ||
slug: '/documentation/intro-doc/', | ||
}, | ||
}, | ||
{ | ||
id: '9cbc3eec-d3ce-522a-b2fd-197c8407b252', | ||
excerpt: | ||
'This static site generator processes MDX in addition to traditional Markdown files. allows for the use of JSX components within Markdown.…', | ||
frontmatter: { | ||
title: 'Components 2.0', | ||
}, | ||
internal: { | ||
contentFilePath: | ||
'/Users/mimiflynn/Projects/MS/ms-gh-pages/site/content/documentation/2.0/components.mdx', | ||
}, | ||
fields: { | ||
slug: '/documentation/2.0/components/', | ||
}, | ||
}, | ||
{ | ||
id: '41748935-af24-51c3-8d32-458375e4246c', | ||
excerpt: | ||
'This static site generator processes MDX in addition to traditional Markdown files. allows for the use of JSX components within Markdown.…', | ||
frontmatter: { | ||
title: 'Components', | ||
}, | ||
internal: { | ||
contentFilePath: | ||
'/Users/mimiflynn/Projects/MS/ms-gh-pages/site/content/documentation/1.0/components.mdx', | ||
}, | ||
fields: { | ||
slug: '/documentation/1.0/components/', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/ | ||
|
||
module.exports = 'test-file-stub'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/ | ||
|
||
const React = require('react'); | ||
const gatsby = jest.requireActual('gatsby'); | ||
|
||
module.exports = { | ||
...gatsby, | ||
graphql: jest.fn(), | ||
Link: jest.fn().mockImplementation( | ||
// these props are invalid for an `a` tag | ||
({ | ||
activeClassName, | ||
activeStyle, | ||
getProps, | ||
innerRef, | ||
partiallyActive, | ||
ref, | ||
replace, | ||
to, | ||
...rest | ||
}) => | ||
React.createElement('a', { | ||
...rest, | ||
href: to, | ||
}) | ||
), | ||
Slice: jest.fn().mockImplementation(({ alias, ...rest }) => | ||
React.createElement('div', { | ||
...rest, | ||
'data-test-slice-alias': alias, | ||
}) | ||
), | ||
useStaticQuery: jest.fn(), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// https://www.gatsbyjs.com/docs/how-to/testing/unit-testing/ | ||
|
||
module.exports = { | ||
transform: { | ||
'^.+\\.jsx?$': `<rootDir>/tests/jest-preprocess.js`, | ||
}, | ||
moduleNameMapper: { | ||
'.+\\.(css|styl|less|sass|scss)$': `identity-obj-proxy`, | ||
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `<rootDir>/__mocks__/file-mock.js`, | ||
}, | ||
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`], | ||
transformIgnorePatterns: [ | ||
`node_modules/(?!(gatsby|gatsby-script|gatsby-link)/)`, | ||
], | ||
globals: { | ||
__PATH_PREFIX__: ``, | ||
}, | ||
testEnvironmentOptions: { | ||
url: `http://localhost`, | ||
}, | ||
setupFiles: [`<rootDir>/tests/loadershim.js`], | ||
testEnvironment: `jsdom`, | ||
setupFilesAfterEnv: ['<rootDir>/tests/setup-test-env.js'], | ||
}; |
Oops, something went wrong.