Skip to content

Commit

Permalink
task: adding the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Jan 17, 2024
1 parent a821019 commit 8c3d9a0
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 45 deletions.
3 changes: 3 additions & 0 deletions docs/customization/_meta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
index: 2
---
Empty file.
Empty file added docs/customization/copy.md
Empty file.
Empty file.
Empty file.
Empty file added docs/customization/logo.md
Empty file.
Empty file added docs/customization/meta_file.md
Empty file.
Empty file.
Empty file added docs/customization/search.md
Empty file.
3 changes: 3 additions & 0 deletions docs/getting_started/anatomy_of_doco.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Anatomy of Doco
---
3 changes: 0 additions & 3 deletions docs/getting_started/development_setup.md

This file was deleted.

50 changes: 9 additions & 41 deletions docs/getting_started/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,30 @@
title: Getting Started
index: 1
---
Doco is delivered as a self-contained binary, making its usage and integration straightforward. The first step in utilizing Doco's full potential is to install this binary, which enables access to all its features, from converting markdown files to integrating with continuous integration workflows. This binary-focused approach ensures a streamlined and efficient user experience.

Doco is a documentation website generator for your projects written in Go. It takes a folder with markdown files and generates a deployable static website.

## Features

- Markdown based
- Generated Navigation
- Responsive Website
- Syntax highlighting
- Quick Search widget

## Installation
To install Doco you can do it with the go tool or download the binary from the [releases page]().

### Install using Go
## Installing
To install Doco you can do it with the go tool or download the binary from the releases page.

```go
go install github.com/paganotoni/doco@latest
```
### Download binary
You can download the binary from the [releases page]() and pick the one that matches your OS and architecture.

## Usage
## Initializing the documentation folder
Once the tool is installed you can run the following command to initialize the documentation folder:

```sh
doco init
```

This, based on the `docs` folder with a few basic files:
This, will create the `docs` folder with a few files:

- _meta.md
- index.md
- getting_started/getting_started.md
- getting_started/development.md
- getting_started/faq.md


## Build the website

Once the folder is initialized you can run the following command to generate the static website:

Expand All @@ -45,24 +34,3 @@ doco build
```

This will generate the static website in the `site` folder. You can then deploy the static website to your favorite hosting provider.

### the `_meta` file

The `_meta` file is a markdown file that contains the metadata for the documentation website. It is used to generate the header links as well as configuring general features such as the search widget.

### markdown files

Each of the markdown files in the `docs` folder will be a page in the documentation website. The folder structure will be used to generate the navigation. However, you can configure the name of these files by adding a `title` metadata to the markdown file. You can also use the `weight` metadata to configure the order of the pages in the navigation menu. Files can be excluded from the navigation by using the `draft` property on them.

A typical markdown file will look like this:

```md
---
title: Getting Started
weight: 1
draft: false
---

# Getting Started
...
```
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ With user-friendly features like sidebar navigation and a search component, Doco

![Doco Preview](assets/preview.png "Preview of Doco")

To get started go to the [getting started](/getting_started/getting_started.html) section.
**Next**:
[Getting Started](/getting_started/getting_started.html)

0 comments on commit 8c3d9a0

Please sign in to comment.