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
If the documentation for a type does not exist create the skeleton of the doc
59
+
If the documentation for a type does not exist, create the skeleton of the doc
64
60
with the helper tool `util/new-type.p6`. Say you want to create `MyFunnyRole`:
65
61
66
-
$ perl6 util/new-type.p6 MyFunnyRole
62
+
$ perl6 util/new-type.p6 --kind=role MyFunnyRole
67
63
68
64
Fill the documentation file `doc/Type/MyFunnyRole.pod6` like this:
69
65
@@ -109,37 +105,16 @@ When providing a code example result or output, use this style:
109
105
110
106
Any contributions should pass the `make test` target. This insures basic
111
107
integrity of the documentation, and is run automatically by a corresponding
112
-
travis build. Even edits made via the github editor should pass this test.
108
+
travis build. Even edits made via the GitHub editor should pass this test.
113
109
114
110
The repo should also pass `make xtest` most of the time - this includes
115
111
tests about whitespace and spelling that might be difficult to get right
116
112
on an initial commit, and shouldn't be considered to break the build. If
117
113
you're contributing a patch or pull request, please make sure this passes.
118
114
119
-
## Testing examples
115
+
## Writing and Testing Examples
120
116
121
-
To export examples from all .pod6-files use `make extract-examples`. To run
122
-
individual tests pick the right .p6-file from `examples/` as a parameter to
123
-
`perl6`.
124
-
125
-
### Skipping tests
126
-
127
-
Some examples fail with compile time exceptions and would interrupt the test
128
-
for a file. Use the pod-config option `skip-test` to skip them.
129
-
130
-
=begin code :skip-test
131
-
your-example-here();
132
-
=end code
133
-
134
-
### Catching expected exception
135
-
136
-
Some tests will throw exceptions that would stop the execution of the extracted
137
-
test file. Use the pod-option `catch-all` to have a default handler installed
138
-
for a single example.
139
-
140
-
=begin code :catch-all
141
-
exception-generator-here();
142
-
=end code
117
+
See [Writing and Testing Examples](EXAMPLES.md)
143
118
144
119
## Testing method completeness
145
120
@@ -184,6 +159,8 @@ following labels when tagging tickets:
184
159
185
160
* site - presentation issue with the website (e.g. invalid HTML)
186
161
* docs - missing or incorrect documentation (use 'NOTSPECCED' instead, if this is for a feature present in a compiler, but not in the Perl 6 test suite)
162
+
* new - this is a new doc item that requires fresh text
163
+
* update - this is an existing doc item that requires some analysis or editing
187
164
* build - scripts or libraries that generate the site
188
165
* search - the search component, either for items that are on the site but not searchable, or for search functionality)
189
166
@@ -195,16 +172,6 @@ Contributors may also specify one of the following tags.
195
172
If you would like to contribute documentation or other bug fixes, please use
196
173
github's Pull request feature.
197
174
198
-
## Website Styles
199
-
200
-
The `html/css/style.css` file is built from `assets/sass/style.sass`. Please
201
-
don't edit `html/css/style.css` directly, as your changes will be lost
202
-
the next time the SASS file is processed.
203
-
204
-
[SASS](http://sass-lang.com/) is a superset of CSS, so if you don't know SASS,
205
-
just write in regular CSS. Run `app.pl` to automatically process SASS and copy
206
-
the result over to `html/css/style.css`
207
-
208
175
## Building the documentation
209
176
210
177
Assuming that you have already forked and cloned the
@@ -221,7 +188,11 @@ computer. To do this you will need:
0 commit comments