Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
4,984 additions
and
8,036 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 @@ | ||
16.16 |
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,20 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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 @@ | ||
module.exports = { | ||
presets: [require.resolve("@docusaurus/core/lib/babel/preset")], | ||
}; |
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Guides | ||
|
||
Preconstruct's guides explain how to achieve common use cases in general terms, if you're looking for information about how to do achieve something with Preconstruct step-by-step, check out [Preconstruct's tutorials](/tutorials) instead. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
sidebar_position: 0 | ||
--- | ||
|
||
# Introduction | ||
|
||
> Dev and build your code painlessly in monorepos | ||
|
4 changes: 4 additions & 0 deletions
4
site/src/pages/tutorials/index.mdx → site/docs/tutorials/index.md
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
4 changes: 4 additions & 0 deletions
4
.../pages/tutorials/multiple-entrypoints.mdx → site/docs/tutorials/multiple-entrypoints.md
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,58 @@ | ||
// @ts-check | ||
// Note: type annotations allow type checking and IDEs autocompletion | ||
|
||
const lightCodeTheme = require("prism-react-renderer/themes/github"); | ||
const darkCodeTheme = require("prism-react-renderer/themes/dracula"); | ||
|
||
/** @type {import('@docusaurus/types').Config} */ | ||
const config = { | ||
title: "Preconstruct", | ||
// tagline: "Dinosaurs are cool", | ||
url: "https://preconstruct.tools", | ||
baseUrl: "/", | ||
onBrokenLinks: "throw", | ||
onBrokenMarkdownLinks: "throw", | ||
favicon: "img/favicon.ico", | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en"], | ||
}, | ||
|
||
presets: [ | ||
[ | ||
"classic", | ||
/** @type {import('@docusaurus/preset-classic').Options} */ | ||
({ | ||
docs: { | ||
routeBasePath: "/", | ||
sidebarPath: require.resolve("./sidebars.js"), | ||
// Please change this to your repo. | ||
// Remove this to remove the "edit this page" links. | ||
editUrl: | ||
"https://github.com/preconstruct/preconstruct/tree/main/packages/create-docusaurus/templates/shared/", | ||
}, | ||
}), | ||
], | ||
], | ||
themeConfig: | ||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ | ||
({ | ||
navbar: { | ||
title: "Preconstruct", | ||
logo: { | ||
alt: "Preconstruct Logo", | ||
src: "img/icon.png", | ||
}, | ||
items: [ | ||
{ | ||
href: "https://github.com/preconstruct/preconstruct", | ||
label: "GitHub", | ||
position: "right", | ||
}, | ||
], | ||
}, | ||
prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme }, | ||
}), | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,37 @@ | ||
{ | ||
"private": true, | ||
"name": "@preconstruct/site", | ||
"version": "1.0.0", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"clean": "rm -rf node_modules .cache public", | ||
"start": "gatsby develop", | ||
"build": "gatsby build" | ||
"start": "docusaurus start", | ||
"build": "docusaurus build", | ||
"clear": "docusaurus clear", | ||
"serve": "docusaurus serve", | ||
"write-translations": "docusaurus write-translations", | ||
"write-heading-ids": "docusaurus write-heading-ids" | ||
}, | ||
"dependencies": { | ||
"@mdx-js/mdx": "^1.5.1", | ||
"@mdx-js/react": "^1.5.1", | ||
"gatsby": "^2.17.7", | ||
"gatsby-plugin-emotion": "^4.1.13", | ||
"gatsby-plugin-google-analytics": "^2.1.23", | ||
"gatsby-plugin-manifest": "^2.2.26", | ||
"gatsby-plugin-mdx": "^1.0.55", | ||
"gatsby-plugin-page-creator": "^2.1.28", | ||
"gatsby-plugin-typography": "^2.3.15", | ||
"gatsby-source-filesystem": "^2.1.35", | ||
"gatsby-theme-sidebar": "^0.0.2", | ||
"prism-react-renderer": "^1.0.2", | ||
"react": "^16.11.0", | ||
"react-dom": "^16.11.0", | ||
"react-typography": "^0.16.19", | ||
"typography": "^0.16.19" | ||
"@docusaurus/core": "2.0.0-beta.22", | ||
"@docusaurus/preset-classic": "2.0.0-beta.22", | ||
"@mdx-js/react": "^1.6.22", | ||
"prism-react-renderer": "^1.3.5", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.5%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=16.14" | ||
}, | ||
"repository": "https://github.com/preconstruct/preconstruct/tree/main/site" | ||
} |
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,31 @@ | ||
/** | ||
* Creating a sidebar enables you to: | ||
- create an ordered group of docs | ||
- render a sidebar for each doc of that group | ||
- provide next/previous navigation | ||
The sidebars can be generated from the filesystem, or explicitly defined here. | ||
Create as many sidebars as you want. | ||
*/ | ||
|
||
// @ts-check | ||
|
||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ | ||
const sidebars = { | ||
// By default, Docusaurus generates a sidebar from the docs folder structure | ||
docs: [{ type: "autogenerated", dirName: "." }], | ||
|
||
// But you can create a sidebar manually | ||
/* | ||
tutorialSidebar: [ | ||
{ | ||
type: 'category', | ||
label: 'Tutorial', | ||
items: ['hello'], | ||
}, | ||
], | ||
*/ | ||
}; | ||
|
||
module.exports = sidebars; |
Oops, something went wrong.