Skip to content

Commit 26895da

Browse files
Merge pull request #21 from mainsail-org/readme
Better readme and contribution guide
2 parents 2a69c31 + b3fbb43 commit 26895da

File tree

2 files changed

+57
-20
lines changed

2 files changed

+57
-20
lines changed

Diff for: README.md

+57-20
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,70 @@
1-
# README
1+
# rustpython.github.io
22

3-
This is a Jekyll site + theme for [RustPython](https://github.com/RustPython/RustPython).
3+
<img src="./logo.png" width="125" height="125" align="right" />
44

5-
There are three things on this site:
5+
## Getting started
66

7-
- Homepage
8-
- Blog (archive + single post)
9-
- Links to Github/Gitter/Docs/other resources, etc...
7+
This site uses Jekyll. You can find instructions for how to install and configure Jekyll on [https://jekyllrb.com/docs/](https://jekyllrb.com/docs/).
108

11-
## How to edit the homepage
9+
## How to Contribute
10+
You can contribute by:
11+
- writing an article,
12+
- improving the theme (developers),
13+
- improving the design of the site by sharing mockups or ideas (UX and designers).
1214

13-
To edit the homepage, you can edit:
15+
## Writing
1416

15-
- `index.markdown` in the root directory.
16-
- `_config.yml` also in the root directory.
17-
- `_data/contributors.json` or run `update_contributors.py`
17+
You can write a blog post in any language. There are no strict writing guidelines, but if you need ones, checkout [Digital Ocean Technical writing guides](https://www.digitalocean.com/community/tutorials/digitalocean-s-technical-writing-guidelines).
1818

19-
`config.yml` has setting like section titles, where links go to etc...
20-
`index.markdown` has the longer text content.
21-
`contributors.json` has a list of the top contributors. I figured we can automate how this is generated or update through pull requests.
19+
As for what to write about, if you think it is worth sharing, then it is worth writing about (as long as it is about RustPython).
2220

23-
## How to edit the blog.
21+
If you need inspiration:
22+
- you can check out the issues marked with the label `content`,
23+
- you can write a how-to, a technical article about something you learned while contributing to RustPython, a use case or just notes-to-future-self for how to configure something.
2424

25-
Create regular jekyll posts under **\_posts** . To feature a post on the homepage under _the learn more_ section, add the category "featured" to the post.
25+
### Adding posts
2626

27-
## How to edit links, menus and other details.
27+
The `_posts` folder is where the blog posts are.
2828

29-
Use `_config.yml`.
29+
To create a new post create a markdown file with this pattern: `YEAR-MONTH-DAY-title.md`, for example: `2020-10-01-why-rust-python-is-awesome.markdown`
3030

31-
## The theme
31+
Here is how the content of that file should look like.
3232

33-
The theme doesn't rely on any css framework/ and no javascript. Just super simple modification to the minima theme. There are two stylesheets, `style.css` and `media.css`. I did not use `main.css` because it conflicts with minima's stylesheet. I haven't done a Jekyll theme in a while, so contributions are welcome.
33+
```
34+
---
35+
layout: post
36+
title: "Why RustPython is awesome!"
37+
---
38+
39+
Content goes here.
40+
41+
```
42+
43+
Once you have your post ready, submit a pull request.
44+
45+
### Editing the homepage
46+
47+
To edit the homepage, you can modifty these files:
48+
49+
- `index.markdown`
50+
- `_config.yml`
51+
52+
`config.yml` has settings like section titles and hyperlinks.
53+
54+
`index.markdown` has the text.
55+
56+
`contributors.json` is automatically generated and has a list of the top contributors.
57+
58+
## Improving the theme.
59+
60+
The theme doesn't rely on any css frameworks or javascript. It is just a super simple modification to the Jekyll `minima` theme.
61+
62+
### Color Scheme
63+
64+
The color scheme is that of the RustPython Logo:
65+
66+
![#F74C00](https://via.placeholder.com/15/F74C00/000000?text=+) `#F74C00` or `rgb(247, 76, 0)`
67+
68+
![#306998](https://via.placeholder.com/15/306998/000000?text=+) `#306998` or `rgb(48, 105, 152)`
69+
70+
![#ffd43b](https://via.placeholder.com/15/ffd43b/000000?text=+) `#ffd43b` or `rgb(255, 212, 59)`

Diff for: logo.png

18.3 KB
Loading

0 commit comments

Comments
 (0)