Skip to content

Correct Documentation Setup #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions project/documentation.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Documentation

The Pixelfed documentation can be found at [docs.pixelfed.org].
The source code repository for the documentation is hosted on GitHub at [https://github.com/pixelfed/docs].
If you find any mistakes in the documentation, please have a look at the [open issues](https://github.com/pixelfed/docs) and open a new one if yours does not exist.
The source code repository for the documentation is hosted on [GitHub][repository].
If you find any mistakes in the documentation, please have a look at the [open issues][repository] and open a new one if yours does not exist.

## Contributing to Documentation

Expand All @@ -12,7 +12,7 @@ Before getting started, please read the [Code of Conduct].
## Writing Documentation Online

To get started writing the documentation, you only need a GitHub account.
You can find the documentation in its [GitHub repository][https://github.com/pixelfed/docs].
You can find the documentation in its [GitHub repository][repository].
Find the right page and after log-in, you can see an edit button above the document.
Please create a Pull Request with your changes.
We are using [Markdown] as the format for the documentation files (`.md`).
Expand All @@ -25,14 +25,18 @@ For most additions and changes to the documentation, you do not need to build th

If you choose to build the documentation website on your own computer, follow these steps:

1. Clone the [https://github.com/pixelfed/docs] repository.
1. Install the required software:

* [Git](https://git-scm.com/) or [Github Desktop](https://desktop.github.com/)
* [node and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)

2. Clone the [repository].

```sh
git clone https://github.com/pixelfed/docs.git pixelfed-docs
cd pixelfed-docs
```

2. Install [node and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
3. Install [VitePress] and the other dependencies.

```sh
Expand All @@ -43,22 +47,25 @@ If you choose to build the documentation website on your own computer, follow th
4. Build and serve the documentation:

```sh
# in the pixelfed-docs directory
npm run docs:dev
```

Then, visit `http://localhost:5173/` in your browser.
Then, visit [localhost:5173](http://localhost:5173/) in your browser.
It should look like [docs.pixelfed.org].
Now, whenever you change a file, it should automatically reload with the changes.

You are set up! Happy documenting!

## Related Links

- [Markdown]
- [VitePress]
- [Code of Conduct]
- [The official documentation][docs.pixelfed.org]
- [The documenation repository][https://github.com/pixelfed/docs]
* [Markdown]
* [VitePress]
* [Code of Conduct]
* [The official Pixelfed documentation][docs.pixelfed.org]
* [The Pixelfed documenation repository][repository]

[VitePress]: https://vitepress.dev/
[docs.pixelfed.org]: https://docs.pixelfed.org
[Code of Conduct]: https://github.com/pixelfed/docs/blob/main/CODE_OF_CONDUCT.md
[pixelfed/docs]: https://github.com/pixelfed/docs
[Code of Conduct]: /CODE_OF_CONDUCT
[repository]: https://github.com/pixelfed/docs