mirror of
https://github.com/openziti/zrok.git
synced 2025-02-16 18:20:51 +01:00
more website rearranging
This commit is contained in:
parent
aec01ad1f3
commit
0c8650c804
23
BUILD.md
23
BUILD.md
@ -1,8 +1,27 @@
|
|||||||
# Build
|
# Build
|
||||||
|
|
||||||
At this time, building `zrok` is pretty straight-forward. To build, follow these steps:
|
## zrok
|
||||||
|
|
||||||
|
At this time, building `zrok` is pretty straight-forward. You will require `npm` to be installed in order to complete
|
||||||
|
the build as well as `go`.
|
||||||
|
|
||||||
|
To build, follow these steps:
|
||||||
* clone the repository
|
* clone the repository
|
||||||
* change to the existing `build` folder
|
* change to the existing `build` folder
|
||||||
* run `npm install`
|
* run `npm install`
|
||||||
* run `npm run build`
|
* run `npm run build` (this process takes a while the first time and only needs to be run if the ui changes)
|
||||||
|
* change back to the checkout root
|
||||||
|
* build the go project normally: `go build -o dist ./...`
|
||||||
|
|
||||||
|
## Documentation/Website
|
||||||
|
|
||||||
|
The doc website is based on [Docusaurus](https://docusaurus.io/) which in turn will require `npm` to be installed. `yarn`
|
||||||
|
is another tool which is used to start the Docusaurus dev site.
|
||||||
|
|
||||||
|
To build the doc:
|
||||||
|
* cd to `website`
|
||||||
|
* run `yarn install` (usually only needed once)
|
||||||
|
* run `yarn start` to start the development server (make sure port 3000 is open or change the port)
|
||||||
|
|
||||||
|
The development server infrequently behaves differently than the 'production' build. If you must use the 'production'
|
||||||
|
build it is slower, but you can accomplish that with `yarn build`.
|
@ -7,7 +7,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'Zrok',
|
title: 'Zrok',
|
||||||
staticDirectories: ['website/static', 'docs/images'],
|
staticDirectories: ['static', '../docs/images'],
|
||||||
tagline: 'Globally distributed reverse proxy',
|
tagline: 'Globally distributed reverse proxy',
|
||||||
url: 'https://zrok.io',
|
url: 'https://zrok.io',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
@ -37,16 +37,17 @@ const config = {
|
|||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
({
|
||||||
docs: {
|
docs: {
|
||||||
sidebarPath: require.resolve('./website/sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
editUrl:
|
editUrl:
|
||||||
'https://github.com/openziti/zrok/tree/main/',
|
'https://github.com/openziti/zrok/tree/main/',
|
||||||
path: './docs',
|
path: '../docs',
|
||||||
|
include: ['**/*.md', '**/*.mdx', '**/*.svg', '**/*.png'],
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./website/src/css/custom.css'),
|
customCss: require.resolve('./src/css/custom.css'),
|
||||||
},
|
},
|
||||||
pages: {
|
pages: {
|
||||||
path: './website/src/pages'
|
path: './src/pages'
|
||||||
},
|
},
|
||||||
// googleAnalytics: {
|
// googleAnalytics: {
|
||||||
//
|
//
|
@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"docusaurus": "docusaurus",
|
"docusaurus": "docusaurus",
|
||||||
"start": "docusaurus start",
|
"start": "docusaurus start",
|
||||||
"build": "BUILD_PATH='./build/docs docusaurus build",
|
"build": "BUILD_PATH='./build/docs' docusaurus build",
|
||||||
"swizzle": "docusaurus swizzle",
|
"swizzle": "docusaurus swizzle",
|
||||||
"deploy": "docusaurus deploy",
|
"deploy": "docusaurus deploy",
|
||||||
"clear": "docusaurus clear",
|
"clear": "docusaurus clear",
|
@ -32,7 +32,7 @@ export default function Home() {
|
|||||||
title={`Hello from ${siteConfig.title}`}
|
title={`Hello from ${siteConfig.title}`}
|
||||||
description="Description will go into a meta tag in <head />">
|
description="Description will go into a meta tag in <head />">
|
||||||
<main className={styles.rowcontainer}>
|
<main className={styles.rowcontainer}>
|
||||||
<iframe className={styles.secondrow} src="https://zrok.io"></iframe>
|
<iframe className={styles.secondrow} src="https://zrokiostg.wpengine.com/"></iframe>
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
2272
website/yarn.lock
2272
website/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user