Skip to content

Commit 16a7407

Browse files
committed
add readme
1 parent e3edead commit 16a7407

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# c-ares website
2+
3+
The c-ares website uses [Jekyll](https://jekyllrb.com/) as a templating system
4+
to generate static html content, which is then hosted on
5+
[GitHub Pages](https://pages.github.com/).
6+
7+
Some content, such as the manpages, are generated externally by the `Makefile`.
8+
Manpages in particular depend on [roffit](https://github.com/bagder/roffit)
9+
for conversion to HTML.
10+
11+
The c-ares source code is expected to exist in a directory named `c-ares.git`
12+
to pull in manpage content along with some other files like `LICENSE.md` and
13+
`SECURITY.md`.
14+
15+
## Building and testing locally
16+
17+
Dependencies:
18+
- Git
19+
- [Install Jekyll](https://jekyllrb.com/docs/installation/)
20+
- GNU Make
21+
- [Roffit](https://github.com/bagder/roffit), available via some package
22+
managers, such as Ubuntu.
23+
24+
Building:
25+
1. Git checkout https://github.com/c-ares/c-ares.github.io
26+
2. Inside of `c-ares.github.io `checkout, checkout the
27+
[c-ares](https://github.com/c-ares/c-ares) source code as `c-ares.git`.
28+
3. Build external files such as manpages via `make`
29+
4. Install Jekyll dependencies for site via (`bundle install`)
30+
5. Build and self-host test site (`bundle exec jekyll serve -V`)
31+
32+
Example:
33+
```bash
34+
git clone https://github.com/c-ares/c-ares.github.io
35+
cd c-ares.github.io
36+
git clone --depth=1 https://github.com/c-ares/c-ares c-ares.git
37+
make
38+
bundle install
39+
bundle exec jekyll serve -V
40+
```

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ exclude:
4242
- Makefile
4343
- docs/*.raw
4444
- .deps
45+
- README.md

0 commit comments

Comments
 (0)