Skip to content

Commit

Permalink
disable reference, add more styling
Browse files Browse the repository at this point in the history
  • Loading branch information
steel89ita committed Jul 3, 2024
1 parent 67f3bfe commit b984802
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 16 deletions.
1 change: 1 addition & 0 deletions docs/999.reference/tutorial-basics/congratulations.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 6
draft: true
---

# Congratulations!
Expand Down
3 changes: 3 additions & 0 deletions docs/999.reference/tutorial-basics/create-a-blog-post.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
sidebar_position: 3
draft: true
---

# Create a Blog Post

Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...

<span class="badge badge--primary">Primary</span>

## Create your first Post

Create a file at `blog/2021-02-28-greetings.md`:
Expand Down
3 changes: 2 additions & 1 deletion docs/999.reference/tutorial-basics/create-a-document.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 2
draft: true
---

# Create a Document
Expand Down Expand Up @@ -43,7 +44,7 @@ It is also possible to create your sidebar explicitly in `sidebars.js`:

```js title="sidebars.js"
export default {
tutorialSidebar: [
docsSidebar: [
'intro',
// highlight-next-line
'hello',
Expand Down
1 change: 1 addition & 0 deletions docs/999.reference/tutorial-basics/create-a-page.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
draft: true
---

# Create a Page
Expand Down
1 change: 1 addition & 0 deletions docs/999.reference/tutorial-basics/deploy-your-site.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 5
draft: true
---

# Deploy your site
Expand Down
1 change: 1 addition & 0 deletions docs/999.reference/tutorial-extras/manage-docs-versions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
draft: true
---

# Manage Docs Versions
Expand Down
1 change: 1 addition & 0 deletions docs/999.reference/tutorial-extras/translate-your-site.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 2
draft: true
---

# Translate your site
Expand Down
6 changes: 3 additions & 3 deletions docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
sidebar_position: 1
draft: true

---

# Introduction
# Getting Started

This documentation site help you configure and understand all about SteelRacing custom AC Mods.

## Getting Started

Get started by navigating through the **left menu**.
Choose a section you need to know more about and start learning to customize the mod as you want.

Expand Down
13 changes: 9 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const projectName = "steel-docs-ac"

const config: Config = {
title: "Steel AC",
tagline: "Dinosaurs are cool",
tagline: "Assetto Corsa Modding Tools made simple.",
favicon: "img/favicon.ico",

// Set the production url of your site here
Expand Down Expand Up @@ -62,27 +62,32 @@ const config: Config = {
themeConfig: {
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
navbar: {
title: "My Site",
title: "SteelRacing AC",
logo: {
alt: "My Site Logo",
src: "img/logo.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
sidebarId: "docsSidebar",
position: "left",
label: "Docs",
},
{ to: "/blog", label: "Blog", position: "left" },
{
href: "https://github.com/facebook/docusaurus",
href: "https://github.com/steel89ita/steel-docs-ac",
label: "GitHub",
position: "right",
},
Expand Down
2 changes: 1 addition & 1 deletion sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [
docsSidebar: [
{ type: "autogenerated", dirName: "." }
],

Expand Down
12 changes: 6 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
*/

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
/* :root {
--ifm-color-primary: hsl(214, 66%, 34%);
--ifm-color-primary-dark: hsl(147, 49%, 32%);
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
} */

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
/* [data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
Expand All @@ -27,4 +27,4 @@
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}
} */
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function HomepageHeader() {
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min ⏱
Take a look - 5min ⏱
</Link>
</div>
</div>
Expand Down

0 comments on commit b984802

Please sign in to comment.