Skip to content

Commit 3a76a16

Browse files
committed
docs: add netlify.toml and update homepage
1 parent 9c28e79 commit 3a76a16

4 files changed

Lines changed: 42 additions & 111 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/src/pages/index.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
import React from 'react';
2-
import Layout from '@theme/Layout';
3-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
42

53
function Home() {
6-
const context = useDocusaurusContext();
7-
const {siteConfig = {}} = context;
8-
return (
9-
<Layout
10-
title={`Hello from ${siteConfig.title}`}
11-
description="Description will go into a meta tag in <head />">
12-
</Layout>
13-
);
4+
React.useEffect(() => {
5+
window.location.href = './quickstart';
6+
}, []);
7+
8+
return null
149
}
1510

1611
export default Home;

docs/src/pages/styles.module.css

Lines changed: 0 additions & 35 deletions
This file was deleted.

netlify.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build]
2+
base = "docs/"
3+
publish = "build/"
4+
command = """
5+
set -e
6+
7+
export OUT_DIR="build/"
8+
export TARGET_OUT_DIR="build/docs"
9+
10+
# Build docs
11+
yarn build
12+
13+
# Delete fragments folder
14+
rm -r $OUT_DIR/fragments
15+
16+
# Move files to build/docs/
17+
mkdir -p tmp-$TARGET_OUT_DIR
18+
mv $OUT_DIR/* tmp-$TARGET_OUT_DIR
19+
mkdir -p $TARGET_OUT_DIR
20+
mv tmp-$TARGET_OUT_DIR/* $TARGET_OUT_DIR
21+
22+
# Add extra files
23+
mv public/* $OUT_DIR/
24+
"""
25+
26+
[build.processing]
27+
skip_processing = false
28+
[build.processing.html]
29+
pretty_urls = true
30+
[build.processing.css]
31+
bundle = false
32+
minify = false
33+
[build.processing.js]
34+
bundle = false
35+
minify = false
36+
[build.processing.images]
37+
compress = true

0 commit comments

Comments
 (0)