Skip to content

Commit bb998aa

Browse files
committed
update the edit process description for docs and blog posts
1 parent 72fc9f9 commit bb998aa

File tree

2 files changed

+19
-38
lines changed

2 files changed

+19
-38
lines changed

doc/en/how-to/write-a-blog-post.markdown

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,34 @@ experiences using or developing Rubinius.
1414
The preferred format for blog posts is Markdown. However, if you have special
1515
formatting needs, the post can be written in HTML directly.
1616

17-
Clone Rubinius repository as that is where the website and posts are stored.
17+
Clone Rubinius repository as that is where the website and posts are stored:
1818

19-
git clone https://github.com/rubinius/rubinius.git
19+
git clone https://github.com/rubinius/rubinius.github.io.git
2020

21-
To get started, ensure you have the `kramdown` and `jekyll` gems installed.
21+
To get started, ensure you have the `github-pages` gem installed. Use
22+
`bundler` inside your local clone directory:
2223

23-
rbx gem install jekyll kramdown
24+
rbx -S bundle install
2425

25-
Now go to the posts directory
26+
Now go to the posts directory:
2627

27-
cd rubinius/web/_posts
28+
cd _posts
2829

2930
Create a file in the console using the filename format `YYYY-MM-DD-perma-link.markdown`.
3031

3132
touch "%(date +"%Y-%m-%d")-perma-link-title.markdown"
3233

33-
Write your brilliant post.
34+
Write your brilliant post:
3435

3536
cat /dev/random > <<the file post>> # :-p
3637

37-
Run jekyll to compile the website, including your post.
38+
Run jekyll to serve the website locally, including your post:
3839

39-
cd ../web/
40-
rbx -S jekyll build
40+
rbx -S jekyll serve --watch
4141

42-
Create a commit of all the changes in the `web/` directory.
42+
Once you are happy with the results create a commit of your post:
4343

44-
cd ../
45-
git add web/
44+
git add _posts/
4645
git commit -m "Wrote a blog post on ....."
4746

4847
Submit a patch, pull request, or if you have commit rights, push the commit to

doc/en/how-to/write-documentation.markdown

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ next_url: how-to/translate-documentation
1010
The Rubinius documentation is integrated with the website and blog. It uses
1111
Jekyll just like the other components.
1212

13-
To get started, ensure you have the `kramdown` and `jekyll` gems installed.
13+
To get started, use `bundler` inside your local repository clone:
1414

15-
rbx gem install jekyll kramdown
15+
rbx -S bundle install
1616

17-
The documentation source is under the `web/doc` directory. There are
17+
The documentation source is under the `doc` directory. There are
1818
subdirectories for each language to which the documentation has been
1919
translated (eg `en`, `es`, etc.).
2020

2121
There is a Table of Contents for each translation (e.g.
22-
`/web/doc/en/index.markdown`). The rest of the documentation consists of
22+
`doc/en/index.markdown`). The rest of the documentation consists of
2323
single files that have YAML attributes to specify how the documents are
2424
connected. Essentially, the documentation can be viewed as a doubly-linked
2525
list of documents with each document pointing to the previous and next
@@ -49,38 +49,26 @@ title and link for the next document. These are used to enhance browsing the
4949
documentation and limiting the amount of work necessary to re-order parts of
5050
the documentation.
5151

52-
Both the source for the documentation and the files generated by Jekyll are
53-
committed to the Rubinius repository. When people clone the source repository,
54-
they can run `rake docs` to view the documentation before they have built
55-
Rubinius or if having problems building Rubinius.
56-
57-
5852
### Editing Existing Documentation
5953

6054
An initial outline for the documentation has been created. There are many
6155
topics that merely need to have documentation written for them.
6256

6357
To add documentation for an existing topic or to fix existing documentation:
6458

65-
1. Open the file for the topic under `web/doc/LANG`.
59+
1. Open the file for the topic under `doc/LANG`.
6660
1. Add or improve the documentation.
6761
1. To view your updates while you are working on them, run
68-
`rbx -S jekyll serve --watch` in the `web/` directory.
62+
`rbx -S jekyll serve --watch` in the root directory.
6963
1. Once finished adding or editing documentation, commit your changes to the
7064
source files.
71-
1. Run `rbx -S jekyll build` in the `web/` directory to force update of all
72-
generated files in `web/_site`.
73-
1. Commit the generated files. If making a small change, the generated files
74-
can be committed with the documentation source files. If making many
75-
changes, commit the generated files separately to make reviewing changes
76-
more simple.
7765

7866

7967
### Adding New Documentation
8068

8169
To add documentation for which no existing topic exists:
8270

83-
1. Create a new file with the .markdown extension under `web/doc/LANG`.
71+
1. Create a new file with the .markdown extension under `doc/LANG`.
8472
1. Set up the attributes to link the new file into the existing files. This
8573
will require editing the _previous_ and _next_ attributes of the existing
8674
files to insert the new file, as well as adding an entry to
@@ -90,9 +78,3 @@ To add documentation for which no existing topic exists:
9078
1. Edit the new file using Markdown syntax.
9179
1. Once finished adding or editing documentation, commit your changes to the
9280
source files.
93-
1. Run `rbx -S jekyll build` in the `web/` directory to force update of all
94-
generated files in `web/_site`.
95-
1. Commit the generated files. If making a small change, the generated files
96-
can be committed with the documentation source files. If making many
97-
changes, commit the generated files separately to make reviewing changes
98-
more simple.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy