You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the source files for ScyllaDB Open Source documentation.
4
+
5
+
- The `dev` folder contains developer-oriented documentation related to the ScyllaDB code base. It is not published and is only available via GitHub.
6
+
- All other folders and files contain user-oriented documentation related to ScyllaDB Open Source and are sources for [docs.scylladb.com](https://docs.scylladb.com/).
7
+
8
+
To report a documentation bug or suggest an improvement, open an issue in [GitHub issues](https://github.com/scylladb/scylla/issues) for this project.
9
+
10
+
To contribute to the documentation, open a GitHub pull request.
11
+
12
+
## Key Guidelines for Contributors
13
+
14
+
- Follow the [ScyllaDB Style Guide](https://docs.google.com/document/d/1lyHp1MKdyj0Hh3NprNFvEczA4dFSZIFoukGUvFJb9yE/edit?usp=sharing).
15
+
- The user documentation is written in reStructuredText (RST) - a plaintext markup language similar to Markdown. If you're not familiar with RST, see [ScyllaDB RST Examples](https://sphinx-theme.scylladb.com/stable/examples/index.html).
16
+
- The developer documentation is written in Markdown. See [Basic Markdown Syntax](https://www.markdownguide.org/basic-syntax/) for reference.
17
+
18
+
19
+
## Creating Knowledge Base Articles
20
+
21
+
The `kb/` directory holds source files for knowledge base articles in the [Knowledge Base section](https://docs.scylladb.com/stable/kb/index.html) of the ScyllaDB documentation.
22
+
23
+
The `kb/kb_common` subdirectory contains a template for knowledge base articles to help you create new articles.
24
+
25
+
To create a new knowledge base article (KB):
26
+
27
+
1. Copy the `kb-article-template.rst` file from `/kb/kb_common` to `/kb` and rename it with a unique name.
28
+
1. Open the new file and fill in the required information.
29
+
1. Remove what is not needed.
30
+
1. Run `make preview` to build the docs and preview them locally.
31
+
1. Send a PR with "KB" in its title.
32
+
33
+
34
+
## Building User Documentation
35
+
36
+
### Prerequisites
37
+
38
+
* Python 3. Check your version with `$ python --version`.
39
+
*[poetry](https://python-poetry.org/) 1.12 or later
40
+
* make
41
+
42
+
#### Mac OS X
43
+
44
+
You must have a working [Homebrew](http://brew.sh/) in order to install the needed tools.
45
+
46
+
You also need the standard utility `make`.
47
+
48
+
Check if you have these two items with the following commands:
49
+
50
+
```sh
51
+
brew help
52
+
make -h
53
+
```
54
+
55
+
#### Linux Distributions
56
+
57
+
Building the user docs should work out of the box on most Linux distributions.
58
+
59
+
#### Windows
60
+
61
+
Use "Bash on Ubuntu on Windows" for the same tools and capabilities as on Linux distributions.
62
+
63
+
### Building the Docs
64
+
65
+
1. Run `make preview` to build the documentation.
66
+
1. Preview the built documentation locally at http://127.0.0.1:5500/.
67
+
68
+
### Cleanup
69
+
70
+
You can clean up all the build products and auto-installed Python stuff with:
71
+
72
+
```sh
73
+
make pristine
74
+
```
75
+
76
+
## Information for Contributors
77
+
78
+
If you are interested in contributing to Scylla
79
+
docs, please read the Scylla open source page at
80
+
http://www.scylladb.com/opensource/ and complete
81
+
a Scylla contributor agreement if needed. We can
82
+
only accept documentation pull requests if we have
83
+
a contributor agreement on file for you.
84
+
85
+
86
+
## Third-party Documentation
87
+
88
+
* Do any copying as a separate commit. Always commit an unmodified version first and then do any editing in a separate commit.
89
+
90
+
* We already have a copy of the Apache license in our tree, so you do not need to commit a copy of the license.
91
+
92
+
* Include the copyright header from the source file in the edited version. If you are copying an Apache Cassandra document with no copyright header, use:
93
+
94
+
```
95
+
This document includes material from Apache Cassandra.
96
+
Apache Cassandra is Copyright 2009-2014 The Apache Software Foundation.
0 commit comments