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
* Describe how to use Codespaces with the repo.
* Add a script that wraps the generation in a single command.
Signed-off-by: mr.Shu <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+31-4Lines changed: 31 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The rules are written in a human readable formatting langue called
28
28
[AsciiDoc](https://asciidoctor.org/docs/asciidoc-writers-guide/), which should
29
29
make them quite readable and easy to edit, so please feel free to do so!
30
30
31
-
## That's way too complicated!
31
+
## That's way too complicated
32
32
33
33
We do realize it may look like that. If you do not feel comfortable with
34
34
suggesting a change using the process above, feel free to create a new thread
@@ -40,7 +40,6 @@ that your submission contains answers to the following sections:
40
40
-**Explain why do you think it should be in the rules**
41
41
-**List the relevant section(s) of previous rules (if applicable)**
42
42
43
-
44
43
We can discuss your suggestion there, and if it makes sense someone will
45
44
certainly put it into the actual `rules.adoc` document.
46
45
@@ -66,8 +65,8 @@ steps:
66
65
At the end of this process we end up with a **HTML** and a **PDF** version of
67
66
the AsciiDoc file we started with.
68
67
69
-
This repository is connected to so called [Travis CI](http://travis-ci.org/)
70
-
which allows us to automatically build the rules whenever any change/update
68
+
This repository is using [GitHub Actions](./github/workflows/) which allows us to
69
+
automatically build the rules whenever any change/update
71
70
takes place.
72
71
73
72
If you'd like to try it on your own, it should not be such a big problem,
@@ -80,3 +79,31 @@ thorugh the build process in two easy steps:
80
79
Which will make the `rules.adoc` file (in the current working directory --
81
80
that's the `$(pwd)` part) go through the build steps above and generate files
82
81
`rules.html` and `rules.pdf` as a result.
82
+
83
+
## Use GitHub Codespaces to edit these files
84
+
85
+
GitHub now has a nice service called [Codespaces](https://github.com/features/codespaces)
86
+
which allows us to spin up a "development environment" without having to
87
+
install various dependencies without having to leave the web browser.
88
+
89
+
Here is a short tutorial on how to edit the rules in Codespaces.
90
+
91
+
### Spinning up Codespaces and building the rules
92
+
93
+
1. First, navigate to the top part of the repository.
94
+
95
+
2. Click on **Code** and then on **Create codespace on master**
96
+

97
+
98
+
3. You should now be able to navigate the `rules.adoc` and/or `superteam_rules.adoc` files and edit them as you like.
99
+
100
+
4. To actually build rules as a PDF and/or HTML, you can execute the following:
101
+
102
+
./scripts/build-rules.bash rules
103
+
104
+
5. After the script has ran, you will see lines such as the following in the output:
105
+
106
+
See the HTML version at: http://localhost:12345/tmp_rules.html
107
+
See the PDF version at: http://localhost:12345/tmp_rules.pdf
108
+
109
+
Clicking on either should bring you to a directory listing, in which you can find `tmp_rules.html` and `tmp_rules.pdf` and have them load. Note that this is now being served from the Codespaces environment (the actual URL will have the `app.github.dev` suffix).
0 commit comments