Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Create index pages for documentation (#82)
Browse files Browse the repository at this point in the history
The documentation files have been slightly restructured to enable an
index page. This avoid 404 errors when a user removes part of the URL to
get to the index of the docs.
  • Loading branch information
jdno authored Apr 13, 2022
1 parent 85b578a commit 1caef89
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![GitHub branch checks state](https://img.shields.io/github/checks-status/jdno/atc/main)](https://github.com/jdno/atc/actions)

[Homepage](https://auto-traffic-control.com) |
[Documentation](https://auto-traffic-control.com/docs/getting-started) |
[Documentation](https://auto-traffic-control.com/docs) |
[Community](https://github.com/jdno/auto-traffic-control/discussions)

**Auto Traffic Control** is a video game played by programming. The player's
Expand Down
1 change: 1 addition & 0 deletions docs/docs/api/introduction.md → docs/docs/api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
title: Introduction
---

# Introduction
Expand Down
8 changes: 6 additions & 2 deletions docs/docs/getting-started.md → docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Getting Started
---
title: Quickstart
---

# Quickstart

## 👋 Welcome

Expand Down Expand Up @@ -92,7 +96,7 @@ a connection to the server, you can start playing the game by sending the

Have fun exploring the game!

[getting started]: /docs/getting-started
[getting started]: /docs
[github]: https://github.com/jdno/auto-traffic-control
[grpc]: https://grpc.io/
[itch.io]: https://itch.io
Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ const config = {
items: [
{
type: "doc",
docId: "getting-started",
docId: "index",
position: "left",
label: "Docs",
},
{
type: "doc",
docId: "api/introduction",
docId: "api/index",
position: "left",
label: "API",
},
Expand Down
2 changes: 1 addition & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docs: ["getting-started", "rules"],
docs: ["index", "rules"],
api: [
{
type: "autogenerated",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ freely practice programming. The game provides a language-agnostic
[gRPC] API, giving players free choice of programming language or paradigm.

:::tip
Check out the [Getting Started](/docs/getting-started) guide to start playing.
Check out the [Getting Started](/docs) guide to start playing.
:::

## Features
Expand Down
2 changes: 1 addition & 1 deletion sdk/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Crates.io](https://img.shields.io/crates/l/auto-traffic-control)](https://crates.io/crates/auto-traffic-control)

[Homepage](https://auto-traffic-control.com) |
[Documentation](https://auto-traffic-control.com/docs/getting-started) |
[Documentation](https://auto-traffic-control.com/docs) |
[Community](https://github.com/jdno/auto-traffic-control/discussions)

**Auto Traffic Control** is a video game played by programming. The player's
Expand Down

0 comments on commit 1caef89

Please sign in to comment.