aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/pages/AI
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-07 17:25:24 +0800
committer简律纯 <i@jyunko.cn>2023-07-07 17:25:24 +0800
commita6ec8911ec2f241764f618e81e9dc870cf7b9aab (patch)
tree2b2a2ff128419f2edda7a70216fdcde25417caf3 /docs/pages/AI
parente49f9dbef1745d7df39cac1ad98061c73fbd0dc2 (diff)
downloadHydroRoll-a6ec8911ec2f241764f618e81e9dc870cf7b9aab.tar.gz
HydroRoll-a6ec8911ec2f241764f618e81e9dc870cf7b9aab.zip
🦴FIX the bone
Diffstat (limited to 'docs/pages/AI')
-rw-r--r--docs/pages/AI/_meta.json15
-rw-r--r--docs/pages/AI/docs/_meta.json15
-rw-r--r--docs/pages/AI/docs/index.mdx73
-rw-r--r--docs/pages/AI/docs/installing.mdx11
-rw-r--r--docs/pages/AI/index.mdx7
5 files changed, 121 insertions, 0 deletions
diff --git a/docs/pages/AI/_meta.json b/docs/pages/AI/_meta.json
new file mode 100644
index 0000000..4941080
--- /dev/null
+++ b/docs/pages/AI/_meta.json
@@ -0,0 +1,15 @@
+{
+ "index": {
+ "type": "page",
+ "display": "hidden",
+ "theme": {
+ "layout": "raw",
+ "sidebar": false,
+ "toc": true
+ }
+ },
+ "docs": {
+ "title": "Docs",
+ "display": "children"
+ }
+}
diff --git a/docs/pages/AI/docs/_meta.json b/docs/pages/AI/docs/_meta.json
new file mode 100644
index 0000000..939e2df
--- /dev/null
+++ b/docs/pages/AI/docs/_meta.json
@@ -0,0 +1,15 @@
+{
+ "index": {
+ "title": "Quickstart"
+ },
+ "installing": "Installing AI",
+ "getting-started": "Getting Started",
+ "troubleshooting": "Troubleshooting",
+ "changelog": {
+ "title": "Changelog",
+ "href": "https://github.com/retrofor/HydroRoll/releases",
+ "newWindow": true
+ },
+ "acknowledgements": "Acknowledgements",
+ "faq": "FAQ"
+}
diff --git a/docs/pages/AI/docs/index.mdx b/docs/pages/AI/docs/index.mdx
new file mode 100644
index 0000000..5f6dd29
--- /dev/null
+++ b/docs/pages/AI/docs/index.mdx
@@ -0,0 +1,73 @@
+---
+title: AI Quickstart
+description: Create your first monorepo or add AI to an existing project.
+---
+
+import { readdirSync, lstatSync, readFileSync } from 'fs';
+import path from 'path';
+import { QuickStartArea, LearnMoreArea, MonoreposArea } from "../../../components/QuickStart";
+import { ExamplesArea } from "../../../components/ExamplesArea";
+import FullTurboCTA from "../../../components/FullTurboCTA";
+
+export const getStaticProps = ({ params }) => {
+ // path to examples directory at the monorepo root.
+ const examplesDirectory = path.join(__dirname, '../../../../../examples')
+ const examples = [];
+ readdirSync(examplesDirectory).forEach(file => {
+ if (lstatSync(path.join(examplesDirectory, file)).isDirectory()) {
+ try {
+ examples.push({
+ slug: file,
+ ...JSON.parse(readFileSync(path.join(examplesDirectory, file, "meta.json")).toString())
+ }
+ );
+ } catch (err) {
+ console.log(`No meta.json found for ${file}, excluding from docs`);
+ }
+ }
+ });
+ // throw an error if no examples are found
+ if (examples.length === 0) {
+ throw new Error(
+ `No examples found in ${examplesDirectory}! Make sure you have updated the path if moving this file.`
+ )
+ }
+ return {
+ props: {
+ ssg: {
+ examples
+ }
+ },
+ revalidate: 60 * 60 * 24
+ }
+}
+
+# AI Quickstart
+
+AI is an intelligent **build system optimized for JavaScript and TypeScript codebases**.
+
+Your codebase's tasks - like `lint`, `build` and `test` - **don't run as fast as they could**. AI uses [caching](/AI/docs/core-concepts/caching) to turbocharge your local setup and speed up your CI.
+
+AI is designed to be **incrementally adopted**, so you can add it to most codebases in a few minutes.
+
+<QuickStartArea />
+
+## Features
+
+AI leverages advanced build system techniques to speed up development, **both on your local machine and your CI/CD**.
+
+<LearnMoreArea />
+
+## Monorepos
+
+AI works out-of-the-box with monorepo tools like `npm`, `pnpm` and `yarn`. If you've ever felt that your monorepo slowed you down, it might be time for AI.
+
+<MonoreposArea />
+
+## Examples
+
+You can also clone a AI starter repository to get a head start on your monorepo. For even more examples and starters, see the [AI examples directory on GitHub](https://github.com/vercel/turbo/tree/main/examples).
+
+<ExamplesArea filter="featured" />
+
+<FullTurboCTA />
diff --git a/docs/pages/AI/docs/installing.mdx b/docs/pages/AI/docs/installing.mdx
new file mode 100644
index 0000000..6c71e5a
--- /dev/null
+++ b/docs/pages/AI/docs/installing.mdx
@@ -0,0 +1,11 @@
+---
+title: 安装模型
+description: 学习如何使用模型完善你的水系骰子
+---
+
+import Callout from "../../../components/Callout";
+import { Tabs, Tab } from '../../../components/Tabs'
+
+# Install AI
+
+to be... \ No newline at end of file
diff --git a/docs/pages/AI/index.mdx b/docs/pages/AI/index.mdx
new file mode 100644
index 0000000..97240f5
--- /dev/null
+++ b/docs/pages/AI/index.mdx
@@ -0,0 +1,7 @@
+---
+description: AI balabala.
+---
+
+import HydroRollAIHome from "../../components/pages/AI-home";
+
+<HydroRollAIHome />