9 |
10 |
11 | Every developer’s experience with their code base is joyful and productive. Reliable documentation is quick to find, and creating rich documentation is simple.
12 |
13 |
14 |
15 |
16 |
17 | This is all VFD, and subject to change
18 |
19 |
20 | One Paragraph of project description goes here. This is ReadMe for the package 1.
21 |
22 | ## Getting Started
23 |
24 | These instructions will get you a copy of the project up and running on your local machine for
25 | development and testing purposes. See deployment for notes on how to deploy the project on a live
26 | system.
27 |
28 | [Link to extended info](./docs/extended-info.md)
29 |
30 | ### Prerequisites
31 |
32 | What things you need to install the software and how to install them
33 |
34 |
35 |
39 |
40 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['special-usecase'],
3 | });
4 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Extended Information
3 | ---
4 |
5 | ```
6 | Give examples
7 | ```
8 |
9 | ### Installing
10 |
11 | A step by step series of examples that tell you how to get a development env running
12 |
13 | Say what the step will be
14 |
15 | ```
16 | Give the example
17 | ```
18 |
19 | And repeat
20 |
21 | ```
22 | until finished
23 | ```
24 |
25 | End with an example of getting some data out of the system or using it for a little demo
26 |
27 | ## Versioning
28 |
29 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
30 | [tags on this repository](https://github.com/your/project/tags).
31 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/examples/content/lorem.json:
--------------------------------------------------------------------------------
1 | [
2 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
3 | "Suspendisse tincidunt vehicula eleifend.",
4 | "Nunc tristique nisi tortor, at pretium purus interdum sed.",
5 | "Sed vel augue sit amet sapien elementum bibendum. Aenean aliquam elementum dui, quis euismod metus ultrices ut.",
6 | "Curabitur est sapien, feugiat vel est eget, molestie suscipit nibh.",
7 | "Nunc libero orci, lacinia id orci aliquam, pharetra facilisis leo.",
8 | "Quisque et turpis nec lacus luctus ultrices quis vel nisi.",
9 | "Cras maximus ex lorem, sit amet bibendum nibh placerat eu.",
10 | "In hac habitasse platea dictumst. ",
11 | "Duis molestie sem vel ante varius, rhoncus pretium arcu dictum."
12 | ]
13 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import DynamicTable from '@atlaskit/dynamic-table';
3 | import { caption, head, rows } from './content/sample-data';
4 |
5 | // prettier-ignore
6 | const Example1 = () => (
7 |
19 | );
20 |
21 | export default Example1;
22 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/examples/example2.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 2 page';
4 | const Example2 = () =>
;
5 |
6 | export default Example3;
7 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mock-package-1",
3 | "version": "1.0.0",
4 | "description": "This is a mock package to be used for doc website",
5 | "main": "index.js",
6 | "keywords": [],
7 | "author": "Test1",
8 | "maintainers": [
9 | "Peter Y",
10 | "Ben C",
11 | "Dean P",
12 | "Aparna R"
13 | ],
14 | "license": "",
15 | "repository": {
16 | "type" : "git",
17 | "url" : "fake-repo-fix-later",
18 | "directory": "packages/website"
19 | },
20 | "dependencies": {
21 | "@atlaskit/avatar": "^14.1.8",
22 | "@atlaskit/dropdown-menu": "^6.1.26",
23 | "@atlaskit/dynamic-table": "^10.0.23",
24 | "react": "^16.7.0",
25 | "react-dom": "^16.7.0",
26 | "styled-components": "^3.2.6"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package1/src/index.js:
--------------------------------------------------------------------------------
1 | // @flow
2 | import React from 'react';
3 |
4 | type FriendsInfo = {
5 | /* Name of the person who is asking for a new friend */
6 | me: string,
7 | /* Name of the person the asker wants to be friends with */
8 | you: string,
9 | /* a hobby to make it easier to start a conversation */
10 |
11 | hobby: string | void,
12 | };
13 |
14 | const BeFriends = ({ me, you, hobby }: FriendsInfo) => (
15 |
16 | Hello {you}. My name is {me}. {hobby ? `I enjoy ${hobby}` : ''}. Would you
17 | like to be friends with me?
18 |
19 | );
20 |
21 | export default BeFriends;
22 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 2.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['special-usecase', '*'],
3 | });
4 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/docs/examples.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const Subexample = () =>
Hello, from a subexample inside docs/
;
4 |
5 | export default Subexample;
6 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/mock-package2/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package 2';
4 | const Example1 = () =>
;
4 |
5 | export default Subexample;
6 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/package-no-readme/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/package-no-readme/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/package-no-readme/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package 2';
4 | const Example1 = () =>
;
8 |
--------------------------------------------------------------------------------
/complete-test-website/otherpackages/package-no-readme/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Test Package 2';
4 | const Element =
Hello, {name}
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/complete-test-website/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@brisk-docs/test-project-all-config",
3 | "version": "1.0.1",
4 | "private": true,
5 | "dependencies": {
6 | "@brisk-docs/gatsby-generator": "^1.1.0",
7 | "@brisk-docs/gatsby-plugin": "^0.1.0",
8 | "gatsby": "^2.17.10",
9 | "react": "16.10.2"
10 | },
11 | "scripts": {
12 | "start": "brisk build-pages && gatsby develop"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/complete-test-website/packages/mock-package3/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | Hypnotherapy: 'I totes think this is fine'
3 | ---
4 |
5 | # Project Title
6 |
7 | One Paragraph of project description goes here. This is ReadMe for the package 3.
8 |
9 | ## Getting Started
10 |
11 | These instructions will get you a copy of the project up and running on your local machine for
12 | development and testing purposes. See deployment for notes on how to deploy the project on a live
13 | system.
14 |
15 | ### Prerequisites
16 |
17 | What things you need to install the software and how to install them
18 |
--------------------------------------------------------------------------------
/complete-test-website/packages/mock-package3/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['*', 'extended-info'],
3 | });
4 |
--------------------------------------------------------------------------------
/complete-test-website/packages/mock-package3/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 |
This is my MDX Demo example
24 |
--------------------------------------------------------------------------------
/complete-test-website/packages/mock-package3/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/complete-test-website/packages/mock-package3/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package3';
4 | const Example1 = () =>
21 | );
22 |
--------------------------------------------------------------------------------
/complete-test-website/tutorial/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Truth
3 | ---
4 |
5 | import truthTxt from './_assets/truth.md';
6 |
7 | # Truth
8 |
9 | Welcome to the Jane Austen inspired docs on how to improve your life!
10 |
11 |
{truthTxt}
12 |
--------------------------------------------------------------------------------
/complete-test-website/tutorial/_assets/truth.md:
--------------------------------------------------------------------------------
1 | It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.
2 |
--------------------------------------------------------------------------------
/cypress.json:
--------------------------------------------------------------------------------
1 | {
2 | "baseUrl": "http://localhost:8000",
3 | "integrationFolder": "packages/gatsby-generator/cypress/integration",
4 | "fixturesFolder": "packages/gatsby-generator/cypress/fixtures",
5 | "screenshotsFolder": "packages/gatsby-generator/cypress/screenshots",
6 | "supportFile": "packages/gatsby-generator/cypress/support/index.js",
7 | "video": false
8 | }
9 |
--------------------------------------------------------------------------------
/docs/contributing.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | First off, thank you for contributing!
4 |
5 | Make sure you read the [getting started](./getting-started.md) guide.
6 |
7 | ## Submitting a PR
8 |
9 | In a PR we expect:
10 |
11 | - tests to demonstrate your change.
12 | - a changeset to document your change (run `bolt changeset` and it will walk you through making a changeset). If you want to know more about changesets, read the documentation on our [release process](./release-process.md)
13 |
--------------------------------------------------------------------------------
/docs/getting-started.md:
--------------------------------------------------------------------------------
1 | # Getting started
2 |
3 | > This document is for deving on this mono-repo. For information on using brisk in your own project see the [@brisk-docs/website documentation](../packages/website)
4 |
5 | This project is a monorepo of several packages which can be managed using bolt.
6 | Before starting your work on any of the packages make sure you run:
7 |
8 | ```sh
9 | yarn global add bolt
10 | # install dependencies
11 | bolt
12 | ```
13 |
14 | Our docs website is the main way to work on components and get feedback on changes.
15 | To start the website locally run:
16 |
17 | ```sh
18 | bolt docs
19 | ```
20 |
21 | ## Testing
22 |
23 | We use Jest for unit testing and Cypress for integration tests.
24 |
25 | ```sh
26 | bolt test
27 | ```
28 |
--------------------------------------------------------------------------------
/docs/mission-statement.md:
--------------------------------------------------------------------------------
1 | # Brisk's Goal
2 |
3 | > Build the best tool to document multi-package repositories
4 |
5 | Brisk aims to meet this goal by understanding package information from multi-package repositories, as well as creating a consistent formula of docs, examples, changelogs, meta which they work to.
6 |
7 | Brisk also draws clear lines and supports a distinction between system documentation and package documentation.
8 |
--------------------------------------------------------------------------------
/example-pages/guide-1.md:
--------------------------------------------------------------------------------
1 | This is a guide 1.
--------------------------------------------------------------------------------
/example-pages/something-else/nestings-continue/places.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/example-pages/something-else/nestings-continue/places.md
--------------------------------------------------------------------------------
/example-pages/something/place.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/example-pages/something/place.md
--------------------------------------------------------------------------------
/example-pages/sub-guides/guide-2.md:
--------------------------------------------------------------------------------
1 | This is a guide 2.
--------------------------------------------------------------------------------
/jest-setup.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable import/no-extraneous-dependencies */
2 | const Enzyme = require('enzyme');
3 | const Adapter = require('enzyme-adapter-react-16');
4 |
5 | // eslint-disable-next-line no-underscore-dangle
6 | global.___loader = {
7 | enqueue: jest.fn(),
8 | };
9 |
10 | Enzyme.configure({ adapter: new Adapter() });
11 |
--------------------------------------------------------------------------------
/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | setupFiles: ['./jest-setup.js'],
3 | testPathIgnorePatterns: ['./cypress/', '__fixtures__', `.cache`, `public`],
4 | testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.([tj]sx?)$',
5 | transformIgnorePatterns: ['node_modules/(?!(@atlaskit|gatsby)/)'],
6 | moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
7 | moduleNameMapper: {
8 | '\\.(css|less)$': '/__mocks__/style-mock.js',
9 | '.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': `/__mocks__/file-mock.js`,
10 | },
11 | globals: {
12 | __PATH_PREFIX__: ``,
13 | },
14 | };
15 |
--------------------------------------------------------------------------------
/packages/file-viewer/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # @brisk-docs/file-viewer
2 |
3 | ## 0.2.5
4 |
5 | ### Patch Changes
6 |
7 | - 36693fd: Safety bump
8 |
9 | ## 0.2.4
10 |
11 | ### Patch Changes
12 |
13 | - 4a3112c: Update react dependency
14 |
15 | ## 0.2.3
16 |
17 | ### Patch Changes
18 |
19 | - 23c4f43: Patch release - previous release does not include built dists
20 |
21 | ## 0.2.2
22 |
23 | ### Patch Changes
24 |
25 | - 6dbc7dc: Fix babel configs for building packages to produce working dists for node scripts.
26 |
27 | ## 0.2.1
28 |
29 | ### Patch Changes
30 |
31 | - d6ad582: Update extract-react-types to support new features in that package
32 |
33 | ## 0.2.0
34 |
35 | ### Minor Changes
36 |
37 | - f49737e: Initial release
38 | Version update of extract react type loader
39 |
--------------------------------------------------------------------------------
/packages/file-viewer/README.md:
--------------------------------------------------------------------------------
1 | import FileViewer from './src/components/file-viewer'
2 | import ButtonExample from './examples/view-button'
3 |
4 | ## File Viewer Component
5 | This library is designed to help you display inline examples and their corresponding source code.
6 |
7 | ### Usage
8 | ```js
9 | import FileViewer from '@brisk-docs/file-viewer'
10 | ```
11 |
12 | ```jsx
13 |
14 | ```
15 |
16 |
17 |
18 |
7 | );
8 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/default-config/custom-config-file.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | docs: { path: 'now/is/the/winter', description: 'View custom documentation' },
3 | packages: ['of/our/disco/tents'],
4 | packagesDescription: 'View custom documentation about individual packages',
5 | });
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/default-config/docs-with-array-config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | docs: [
3 | {
4 | path: 'now/is/the/winter',
5 | name: 'docs',
6 | description: 'View custom documentation',
7 | },
8 | {
9 | path: 'now/is/the/summer',
10 | name: 'guides',
11 | description: 'View custom guides',
12 | },
13 | ],
14 | packages: ['of/our/disco/tents'],
15 | packagesDescription: 'View custom documentation about individual packages',
16 | });
17 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/default-config/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | docs: { path: 'a/b/c', name: 'docs' },
3 | packages: ['x/y/z'],
4 | });
5 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/derpo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/derpo.jpg
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/doc-1.md:
--------------------------------------------------------------------------------
1 | # This is doc 1
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/doc-2.md:
--------------------------------------------------------------------------------
1 | # This is doc 2
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/doc-3/doc-3-2/README.md:
--------------------------------------------------------------------------------
1 | # This is doc 1 inside doc 2 inside doc 3
2 |
3 | #docception
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/docs-with-readme/docs/doc-3/readme.md:
--------------------------------------------------------------------------------
1 | # This is doc 1 nested in doc-3
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/index.js:
--------------------------------------------------------------------------------
1 | // This utility is to reduce the need to litter usages
2 | // of __dirname across our tests which make it hard to
3 | // move files
4 |
5 | module.exports.fixturesPath = __dirname;
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/_assets/doc-3.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/_assets/doc-3.md
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/doc-2.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/doc-2.md
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/resources/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/resources/1.png
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/sub-docs/doc-1.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/mock-docs-with-assets/docs/sub-docs/doc-1.md
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-guides/docs/testdoc.md:
--------------------------------------------------------------------------------
1 | This is a test document for mocking.
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-guides/guides/testguide.md:
--------------------------------------------------------------------------------
1 | This is a test guide document for mocking.
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/doc-1.md:
--------------------------------------------------------------------------------
1 | # This is doc 1
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/doc-2.md:
--------------------------------------------------------------------------------
1 | # This is doc 2
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/doc-3/doc-3-1.md:
--------------------------------------------------------------------------------
1 | # This is doc 1 nested in doc-3
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/doc-3/doc-3-2/doc-3-2-1.md:
--------------------------------------------------------------------------------
1 | # This is doc 1 inside doc 2 inside doc 3
2 |
3 | #docception
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/doc-3/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['*', 'doc-3-1'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-docs-with-sorting/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['doc-2'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/mock-package2/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 2.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/mock-package2/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/mock-package2/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/mock-package2/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package 2';
4 | const Example1 = () =>
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 1.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/docs/some-subdirectory/nesting-now-supported.md:
--------------------------------------------------------------------------------
1 | Technically we could show this, but we're just not gonna
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 page';
4 | const Example1 = () =>
;
5 |
6 | export default Example3;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/examples/not-an-example.txt:
--------------------------------------------------------------------------------
1 | I am but a humble text file.
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/examples/utils-please-ignore/index.js:
--------------------------------------------------------------------------------
1 | // This should not be used in the docs website.
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mock-package-1",
3 | "version": "1.0.0",
4 | "description": "This is a mock package to be used for doc website",
5 | "main": "index.js",
6 | "keywords": [],
7 | "author": "Test1",
8 | "license": "",
9 | "dependencies": {
10 | "react": "^16.7.0",
11 | "react-dom": "^16.7.0",
12 | "styled-components": "^4.1.3"
13 | }
14 | }
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-nested-group-packages/packages/sub-folder/mock-package1/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Test Package 1';
4 | const Element =
Hello, {name}
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/README.md:
--------------------------------------------------------------------------------
1 | This is the root level doc file for the site.
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 1.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/docs/some-subdirectory/nesting-now-supported.md:
--------------------------------------------------------------------------------
1 | Technically we could show this, but we're just not gonna
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 page';
4 | const Example1 = () =>
;
5 |
6 | export default Example3;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/examples/not-an-example.txt:
--------------------------------------------------------------------------------
1 | I am but a humble text file.
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/examples/utils-please-ignore/index.js:
--------------------------------------------------------------------------------
1 | // This should not be used in the docs website.
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mock-package-1",
3 | "version": "1.0.0",
4 | "description": "This is a mock package to be used for doc website",
5 | "main": "index.js",
6 | "keywords": [],
7 | "author": "Test1",
8 | "license": "",
9 | "dependencies": {
10 | "react": "^16.7.0",
11 | "react-dom": "^16.7.0",
12 | "styled-components": "^4.1.3"
13 | }
14 | }
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-root-readme/packages/mock-package1/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Test Package 1';
4 | const Element =
Hello, {name}
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-sub-examples/packages/mock-package1/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 1.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-sub-examples/packages/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-sub-examples/packages/mock-package1/docs/some-subdirectory/nesting-now-supported.md:
--------------------------------------------------------------------------------
1 | Technically we could show this, but we're just not gonna
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-sub-examples/packages/mock-package1/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-package-with-sub-examples/packages/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 page';
4 | const Example1 = () =>
;
5 |
6 | export default Examples;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/mock-packages-manifests/packages/manifest-app-1/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "contactStaffId": "cdebourgh",
3 | "team": "Rosings Park",
4 | "jiraProjectUrl": "https://tldr-TODO-fic-this",
5 | "maintainers": ["cdebourgh", "wcollins"]
6 | }
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/derpo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/derpo.jpg
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/doc-1.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'Document One'
3 | ---
4 |
5 | # This is doc 1
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/doc-2.md:
--------------------------------------------------------------------------------
1 | # This is doc 2
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/doc-3/doc-3-1.md:
--------------------------------------------------------------------------------
1 | ---
2 | readingTime: '1 second'
3 | ---
4 |
5 | # This is doc 1 nested in doc-3
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-docs/docs/doc-3/doc-3-2/doc-3-2-1.md:
--------------------------------------------------------------------------------
1 | ---
2 | usefulness: 'yes'
3 | ---
4 |
5 | # This is doc 1 inside doc 2 inside doc 3
6 |
7 | #docception
8 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # mock-package-1
2 |
3 | ## 1.0.0
4 |
5 | ### Patch Changes
6 |
7 | - 23c4f43: This exists
8 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | keywords: ['project', 'react']
3 | ---
4 |
5 | # Project Title
6 |
7 | One Paragraph of project description goes here. This is ReadMe for the package 1.
8 |
9 | ## Getting Started
10 |
11 | These instructions will get you a copy of the project up and running on your local machine for
12 | development and testing purposes. See deployment for notes on how to deploy the project on a live
13 | system.
14 |
15 | ### Prerequisites
16 |
17 | What things you need to install the software and how to install them
18 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'Extended Information'
3 | ---
4 |
5 | ```
6 | Give examples
7 | ```
8 |
9 | ### Installing
10 |
11 | A step by step series of examples that tell you how to get a development env running
12 |
13 | Say what the step will be
14 |
15 | ```
16 | Give the example
17 | ```
18 |
19 | And repeat
20 |
21 | ```
22 | until finished
23 | ```
24 |
25 | End with an example of getting some data out of the system or using it for a little demo
26 |
27 | ## Versioning
28 |
29 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
30 | [tags on this repository](https://github.com/your/project/tags).
31 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/docs/some-subdirectory/nesting-now-supported.md:
--------------------------------------------------------------------------------
1 | ---
2 | status: 'WIP'
3 | ---
4 |
5 | Technically we could show this, but we're just not gonna
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 page';
4 | const Example1 = () =>
;
5 |
6 | export default Example3;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/examples/not-an-example.txt:
--------------------------------------------------------------------------------
1 | I am but a humble text file.
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/examples/utils-please-ignore/index.js:
--------------------------------------------------------------------------------
1 | // This should not be used in the docs website.
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mock-package-1",
3 | "version": "1.0.0",
4 | "description": "This is a mock package to be used for doc website",
5 | "main": "index.js",
6 | "keywords": [],
7 | "author": "Test1",
8 | "license": "",
9 | "dependencies": {
10 | "react": "^16.7.0",
11 | "react-dom": "^16.7.0",
12 | "styled-components": "^4.1.3"
13 | }
14 | }
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package1/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Test Package 1';
4 | const Element =
Hello, {name}
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package2/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 2.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package2/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package2/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package2/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package 2';
4 | const Example1 = () =>
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package3/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | export const Demo = () => (
24 |
25 |
This is my MDX Demo example
26 | );
27 |
28 |
29 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package3/docs/special-usecase.mdx:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/__fixtures__/simple-mock-packages/packages/mock-package3/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package3';
4 | const Example1 = () =>
;
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/1-scan-metadata-stage.md:
--------------------------------------------------------------------------------
1 | # Scan metadata build stage
2 |
3 | This is the start of the Brisk pipeline. During this stage, the target project is scanned in order to find all the
4 | packages, examples and docs that will be used in the final website. The output of this stage is a data structure
5 | containing all of this info.
6 |
7 | This stage should be the only one in the pipeline to be reading the user's filesystem to find the location of important
8 | files or for other metadata. This is to avoid harmful couplings of the filesystem to the finished website.
9 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/2-generate-website-info-stage.md:
--------------------------------------------------------------------------------
1 | # Generate website info build stage
2 |
3 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/3-generate-pages-stage.md:
--------------------------------------------------------------------------------
1 | # Generate pages build stage
2 |
3 | This stage receives specifications for various types of pages to be created for the website, and then generates a js file
4 | for each page using a page-specific template.
5 |
6 | TODO: Input type definition docs
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/4-build-website-stage.md:
--------------------------------------------------------------------------------
1 | # Build website build stage
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/5-start-website-stage.md:
--------------------------------------------------------------------------------
1 | # Start website build stage
2 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/build-pipeline/README.md:
--------------------------------------------------------------------------------
1 | # The brisk website build pipeline
2 |
3 | Brisk docs uses a pipeline of build stages to take the docs in a codebase and turn it into a website.
4 |
5 | ## Build stages reference
6 |
7 | - [Scan metadata stage](./1-scan-metadata-stage.md)
8 | - [Generate website info stage](./2-generate-website-info-stage.md)
9 | - [Generate pages stage](./3-generate-pages-stage.md)
10 | - [Build website stage](./4-build-website-stage.md)
11 | - [Start website stage](./5-start-website-stage.md)
12 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/docs/configuring-webpack.md:
--------------------------------------------------------------------------------
1 | # Customising the webpack config
2 |
3 | If your project needs special build configurations to run your code it's possible to pass these options
4 | to Brisk Docs so that your components can be displayed within the website.
5 |
6 | This is done by adding a function into your `docs.config.js` file, e.g.
7 |
8 | ```js
9 | // docs.config.js
10 | module.exports = () => ({
11 | webpack: config => {
12 | // Add support for importing Sass files
13 | config.module.rules.push({
14 | test: /\.scss?$/,
15 | use: ['style-loader', 'css-loader', 'sass-loader'],
16 | });
17 |
18 | return config;
19 | },
20 | });
21 | ```
22 |
23 | The first argument provided to your function is a [webpack configuration](https://webpack.js.org/configuration) object that you can extend. The returned configuration is then used to build the website.
24 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | module.exports = () => ({
4 | packages: path.join(__dirname, 'packages', '*'),
5 | docs: [
6 | {
7 | path: path.join(__dirname, 'docs'),
8 | name: 'Project docs',
9 | // Override the default url path which is derived from cwd
10 | urlPath: 'docs',
11 | },
12 | ],
13 | siteName: 'Dummy Data Docs',
14 | favicon: path.join(__dirname, 'favicon.ico'),
15 | });
16 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | version: 0.0.1
3 | ---
4 |
5 | Welcome to the Jane Austen inspired docs on how to improve your life!
6 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs/guides/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['nifty-tricks', 'how-to-be-accomplished'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs/guides/how-to-be-accomplished.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: 'Being accomplished'
3 | ---
4 |
5 | # Being accomplished
6 |
7 | To be considered truly accomplished[^1] you must:
8 |
9 | - paint tables
10 | - cover screens
11 | - be a master of languages
12 | - possess a certain something in your manner of walking and tone of voice
13 | - improve your mind through extensive reading
14 |
15 | [^1]: Such people may not exist.
16 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs/guides/nifty-tricks/_assets/feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/dummy-data/simple-project/docs/guides/nifty-tricks/_assets/feedback.png
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/docs/guides/nifty-tricks/staying-at-netherfield.md:
--------------------------------------------------------------------------------
1 | ---
2 | worthIt: yes
3 | ---
4 |
5 | # Mrs Bennet's guide to securing a stay at Netherfield Park
6 |
7 | One sure fire technique for turning a short visit into a long stay is to begin your journey to
8 | Netherfield on horseback just before it rains. Upon your arrival the good Mr Bingley will be
9 | compelled to allow you to stay until the weather clears. You may catch a terrible cold, but it will
10 | be worth it.
11 |
12 | 
13 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/atlassian-archive/brisk-docs/d40573e4c2872217f3d2f607f096098a9f63e38d/packages/gatsby-generator/dummy-data/simple-project/favicon.ico
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/README.md:
--------------------------------------------------------------------------------
1 | ---
2 | status: VFD
3 | keywords: ['friends']
4 | ---
5 |
6 | import SectionMessage from '@atlaskit/section-message';
7 |
8 |
9 |
10 |
11 | Every developer’s experience with their code base is joyful and productive. Reliable documentation is quick to find, and creating rich documentation is simple.
12 |
13 |
14 |
15 |
16 |
17 | This is all VFD, and subject to change
18 |
19 |
20 | One Paragraph of project description goes here. This is ReadMe for the package 1.
21 |
22 | ## Getting Started
23 |
24 | These instructions will get you a copy of the project up and running on your local machine for
25 | development and testing purposes. See deployment for notes on how to deploy the project on a live
26 | system.
27 |
28 | [Link to extended info](./docs/extended-info.md)
29 |
30 | ### Prerequisites
31 |
32 | What things you need to install the software and how to install them
33 |
34 |
35 |
39 |
40 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['special-usecase'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Extended Information
3 | ---
4 |
5 | ```
6 | Give examples
7 | ```
8 |
9 | ### Installing
10 |
11 | A step by step series of examples that tell you how to get a development env running
12 |
13 | Say what the step will be
14 |
15 | ```
16 | Give the example
17 | ```
18 |
19 | And repeat
20 |
21 | ```
22 | until finished
23 | ```
24 |
25 | End with an example of getting some data out of the system or using it for a little demo
26 |
27 | ## Versioning
28 |
29 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
30 | [tags on this repository](https://github.com/your/project/tags).
31 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/examples/content/lorem.json:
--------------------------------------------------------------------------------
1 | [
2 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
3 | "Suspendisse tincidunt vehicula eleifend.",
4 | "Nunc tristique nisi tortor, at pretium purus interdum sed.",
5 | "Sed vel augue sit amet sapien elementum bibendum. Aenean aliquam elementum dui, quis euismod metus ultrices ut.",
6 | "Curabitur est sapien, feugiat vel est eget, molestie suscipit nibh.",
7 | "Nunc libero orci, lacinia id orci aliquam, pharetra facilisis leo.",
8 | "Quisque et turpis nec lacus luctus ultrices quis vel nisi.",
9 | "Cras maximus ex lorem, sit amet bibendum nibh placerat eu.",
10 | "In hac habitasse platea dictumst. ",
11 | "Duis molestie sem vel ante varius, rhoncus pretium arcu dictum."
12 | ]
13 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import DynamicTable from '@atlaskit/dynamic-table';
3 | import { caption, head, rows } from './content/sample-data';
4 |
5 | // prettier-ignore
6 | const Example1 = () => (
7 |
19 | );
20 |
21 | export default Example1;
22 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/examples/example2.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 2 page';
4 | const Example2 = () =>
;
5 |
6 | export default Example3;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mock-package-1",
3 | "version": "1.0.0",
4 | "description": "This is a mock package to be used for doc website",
5 | "main": "index.js",
6 | "keywords": [],
7 | "author": "Test1",
8 | "maintainers": [
9 | "Peter Y",
10 | "Ben C",
11 | "Dean P",
12 | "Aparna R"
13 | ],
14 | "license": "",
15 | "repository": {
16 | "type" : "git",
17 | "url" : "fake-repo-fix-later",
18 | "directory": "packages/website"
19 | },
20 | "dependencies": {
21 | "@atlaskit/avatar": "^14.1.8",
22 | "@atlaskit/dropdown-menu": "^6.1.26",
23 | "@atlaskit/dynamic-table": "^10.0.23",
24 | "react": "^16.7.0",
25 | "react-dom": "^16.7.0",
26 | "styled-components": "^3.2.6"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package1/src/index.js:
--------------------------------------------------------------------------------
1 | // @flow
2 | import React from 'react';
3 |
4 | type FriendsInfo = {
5 | /* Name of the person who is asking for a new friend */
6 | me: string,
7 | /* Name of the person the asker wants to be friends with */
8 | you: string,
9 | /* a hobby to make it easier to start a conversation */
10 |
11 | hobby: string | void,
12 | };
13 |
14 | const BeFriends = ({ me, you, hobby }: FriendsInfo) => (
15 |
16 | Hello {you}. My name is {me}. {hobby ? `I enjoy ${hobby}` : ''}. Would you
17 | like to be friends with me?
18 |
19 | );
20 |
21 | export default BeFriends;
22 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package2/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 2.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package2/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['special-usecase', '*'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package2/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 | ## Versioning
24 |
25 | We use [Vertool](http://semver.org/) for versioning. For the versions available, see the
26 | [tags on this repository](https://github.com/your/project/tags).
27 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package2/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package2/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package 2';
4 | const Example1 = () =>
;
5 |
6 | export default Element;
7 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package3/README.md:
--------------------------------------------------------------------------------
1 | # Project Title
2 |
3 | One Paragraph of project description goes here. This is ReadMe for the package 3.
4 |
5 | ## Getting Started
6 |
7 | These instructions will get you a copy of the project up and running on your local machine for
8 | development and testing purposes. See deployment for notes on how to deploy the project on a live
9 | system.
10 |
11 | ### Prerequisites
12 |
13 | What things you need to install the software and how to install them
14 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package3/docs/docs.config.js:
--------------------------------------------------------------------------------
1 | module.exports = () => ({
2 | sortOrder: ['*', 'extended-info'],
3 | });
4 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package3/docs/extended-info.md:
--------------------------------------------------------------------------------
1 | ```
2 | Give examples
3 | ```
4 |
5 | ### Installing
6 |
7 | A step by step series of examples that tell you how to get a development env running
8 |
9 | Say what the step will be
10 |
11 | ```
12 | Give the example
13 | ```
14 |
15 | And repeat
16 |
17 | ```
18 | until finished
19 | ```
20 |
21 | End with an example of getting some data out of the system or using it for a little demo
22 |
23 |
This is my MDX Demo example
24 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package3/docs/special-usecase.md:
--------------------------------------------------------------------------------
1 | ## Running the tests
2 |
3 | Explain how to run the automated tests for this system
4 |
5 | ### Break down into end to end tests
6 |
7 | Explain what these tests test and why
8 |
9 | ```
10 | Give an example
11 | ```
12 |
13 | ### And coding style tests
14 |
15 | Explain what these tests test and why
16 |
17 | ## Deployment
18 |
19 | Add additional notes about how to deploy this on a live system
20 |
--------------------------------------------------------------------------------
/packages/gatsby-generator/dummy-data/simple-project/packages/mock-package3/examples/example1.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const name = 'Example 1 package3';
4 | const Example1 = () =>