Korbs/Contour
Archived
Template
1
Fork 0
This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/README.md
2024-01-31 07:00:17 -05:00

135 lines
No EOL
2.7 KiB
Markdown

# FluxNodes
![Landing](https://img.sudovanilla.com/4aZdSVi.png)
> The image shown is a concept
## Support Center and Documents
All articles for Flux's support center is located at `/src/content/docs/support/`
All documents such as Terms of Service or when polices need to be added, they should be located at `/src/content/docs/`.
### Writing an Article
All articles are written in Markdown, do make sure you're adding the markdown file to the appropriate category folder.
Articles, at the least, should have a title and last updated:
```md
---
title: Title of Article
lastUpdated: 2024-03-15
---
```
### Frontmatter
In each article, there are plenty of options to add to the frontmatter which can be used to add stuff such as banners, table of contents, and other variables.
#### Banners
![Banner Example](https://img.sudovanilla.com/4My6Qw0.png)
To add a banner, add the following:
```md
---
banner:
content: |
This is an example of a banner.
<a href="https://fluxnodes.net/">Important Link</a>
---
```
#### Table of Contents
![Table of Contents Preview](https://img.sudovanilla.com/6Ovnadk.png)
If for whatever reason you want to enable the table of contents for an article, you can enable by adding:
```md
---
tableOfContents: true
---
```
#### Badge
<img width="300px" src="https://img.sudovanilla.com/BcyNUdH.png">
Badges can be used to add a little text next to the article name like "New" or "Outdated".
Varients: `note` | `tip` | `caution` | `danger` | `success` | `default`
```md
---
sidebar:
badge:
text: Outdated
variant: caution
---
```
#### Slug
If you need to override the URL, you can use `slug`.
```md
---
slug: /support/minecraft/world-management
---
```
#### Layouts
This should only be set for documents such as Terms of Service and polices.
Starlight provides two options: `doc` | `splash`
The `doc` layouts includes both the sidebar and content, useful for articles. The `splash` layout removes the sidebar.
```md
---
template: splash
---
```
## Development
### Requirements
- [Bun](https://bun.sh/)
- NodeJS 20 or later
### Install Packages
Installing packages is required to start run and to build the website, run:
```
bun install
```
### Run
To start running the website on a port, run:
```
bun dev
```
## Production
### Build Static
To build the website in static mode, run:
```
bun build
```
### Server Side Rendering
To run the website in server side rendering mode, run:
```
bun start
```
### Docker
This website is Docker ready!
Build the Docker image, run:
```
docker build -t fluxnodes.net .
```
Then, to run:
```
docker run -d -p 2000:2000 fluxnodes.net
```
or use the already provided Docker Compose file:
```
docker compose up -d
```
> `sudo` might be required on some systems to run Docker commands.