Skip to content

Commit 253e2e6

Browse files
authored
Merge pull request #141 from niccokunzmann/improve-docs-setup
Correct Documentation Setup
2 parents 10d3952 + 9d84e24 commit 253e2e6

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

project/documentation.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Documentation
22

33
The Pixelfed documentation can be found at [docs.pixelfed.org].
4-
The source code repository for the documentation is hosted on GitHub at [https://github.com/pixelfed/docs].
5-
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.
4+
The source code repository for the documentation is hosted on [GitHub][repository].
5+
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.
66

77
## Contributing to Documentation
88

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

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

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

28-
1. Clone the [https://github.com/pixelfed/docs] repository.
28+
1. Install the required software:
29+
30+
* [Git](https://git-scm.com/) or [Github Desktop](https://desktop.github.com/)
31+
* [node and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
32+
33+
2. Clone the [repository].
2934

3035
```sh
3136
git clone https://github.com/pixelfed/docs.git pixelfed-docs
3237
cd pixelfed-docs
3338
```
3439

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

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

4549
```sh
50+
# in the pixelfed-docs directory
4651
npm run docs:dev
4752
```
4853

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

58+
You are set up! Happy documenting!
59+
5360
## Related Links
5461

55-
- [Markdown]
56-
- [VitePress]
57-
- [Code of Conduct]
58-
- [The official documentation][docs.pixelfed.org]
59-
- [The documenation repository][https://github.com/pixelfed/docs]
62+
* [Markdown]
63+
* [VitePress]
64+
* [Code of Conduct]
65+
* [The official Pixelfed documentation][docs.pixelfed.org]
66+
* [The Pixelfed documenation repository][repository]
6067

6168
[VitePress]: https://vitepress.dev/
6269
[docs.pixelfed.org]: https://docs.pixelfed.org
63-
[Code of Conduct]: https://github.com/pixelfed/docs/blob/main/CODE_OF_CONDUCT.md
64-
[pixelfed/docs]: https://github.com/pixelfed/docs
70+
[Code of Conduct]: /CODE_OF_CONDUCT
71+
[repository]: https://github.com/pixelfed/docs

0 commit comments

Comments
 (0)