Welcome to the source for the OAWiki - https://wiki.observational.space ! If you are interested in contributing an article, thank you! The next two sections are just for you :)
The wiki pages are written in markdown. You might be familiar with it - **bold**
and # heading
and [link text](url)
(for more, check out here). You can write markdown text anywhere; if you would like a suggestion that isn't here on GitHub, try https://hackmd.io
Some considerations as you write:
The easiest way is to send your article or contribution in the discord, and ask a wiki maintainer to integrate it. This is recommended for first time contributors.
You can also do that integration process yourself. At this GitHub, you'll open a pull request with your change, which will be approved by a maintainer and automatically made live on the site. You'll need to make an account on GitHub for this. Specifically, the process goes:
Edit on GitHub
Commit changes...
to click when you're satisfiedCommit message
is important; extended description etc is not. The commit message is what will be shown when folks look through a page's history, so replace the default and just breifly describe what was changed, and put your name in parentheses afterward. You don't need to say the file / page name here.
Pull requests
tab, and hopefully there's a yellow box saying there is recent activity and suggesting you Compare & pull request
- do that, then click the next big green button Create pull request
For the nerds, here's how!
The site is built from markdown using
sphinx
. To build the site, you'll
first need to install python via your favorite method. Then install the
python dependencies:
pip install -r requirements.txt
Inside src/
you'll find a Makefile
which helps orchestrate the build.
Simply type
make html
to build the site; the output will be written to src/_build/html/
. Using your
browser, open src/_build/html/index.html
to view the site.
pre-commit
is a python tool which allows for
formatting and linting tools to be run automatically when a git commit
is
called. Here, we use it to automatically
requirements.txt
\r\n
-> \n
)To enable these hooks, make sure the dependencies are installed:
pip install -r requirements.txt
Then install the hooks:
pre-commit install
Now, any time you do git commit
, these checks will be automatically run. If
pre-commit
modifies your code, it will tell you that it automatically modified
your code. If you git add
those modified files and then call git commit
again, the checks will run again. Once all the checks are passing, you'll be
able to commit as normal.
If you temporarily want to disable the pre-commit hooks, you can do git commit -n
to disable the hooks for just that commit.