Skip to content

Commit 087533e

Browse files
authored
Merge pull request #1 from Raku/master
merge upstream
2 parents 31e1fc5 + 187a109 commit 087533e

File tree

217 files changed

+6909
-2978
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+6909
-2978
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug report or feature request
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: docs
6+
assignees: ''
7+
8+
---
9+
10+
## Problem or new feature
11+
12+
A clear and concise description of what the bug is, including links to the page where you have found it.
13+
14+
## Suggestions
15+
16+
If applicable, suggest something towards the solution.

.github/issue_template.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ node_modules/
3333
package-lock.json
3434
*.epub
3535
.idea
36+
*.iml

CONTRIBUTING.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
Your patches to `perl6/doc` are very welcome, and if you want to
3+
Your patches to `Raku/doc` are very welcome, and if you want to
44
help,
55
[please read this guide](https://dev.to/jj/squashing-perl-6-documentation-bugs-one-at-a-time-4ojn) as
66
well as the detailed instructions below.
@@ -28,6 +28,7 @@ in the [#raku IRC channel](https://raku.org/community/irc).
2828
- [Broken links](#broken-links)
2929
- [Heading numbering](#heading-numbering)
3030
- [Reporting bugs](#reporting-bugs)
31+
- [Contributing pull requests](#contributing-pull-requests)
3132
- [Building the documentation](#building-the-documentation)
3233
- [Dependency installation](#dependency-installation)
3334
- [Rakudo](#rakudo)
@@ -68,7 +69,7 @@ available when writing code examples in the documentation.
6869
## Adding a new Language document
6970

7071
We suggest you discuss proposing a new Language document on the #raku
71-
channel and/or the [issues for this repository](https://github.com/perl6/doc/issues)
72+
channel and/or the [issues for this repository](https://github.com/Raku/doc/issues)
7273
before you proceed further. After you get consensus on a title, subtitle,
7374
section, and filename, you can add the document by following these steps:
7475

@@ -82,8 +83,8 @@ section, and filename, you can add the document by following these steps:
8283

8384
## Documenting types
8485

85-
The Pod 6 documentation of types is located in the `doc/Type` directory and
86-
subdirectories of this repository. For example the Pod 6 file of `X::Bind::Slice`
86+
The Pod6 documentation of types is located in the `doc/Type` directory and
87+
subdirectories of this repository. For example the Pod6 file of `X::Bind::Slice`
8788
lives in `doc/Type/X/Bind/Slice.pod6`.
8889

8990
To start contributing, fork and checkout the repository, find the document
@@ -162,9 +163,9 @@ See [Writing and Testing Examples](writing-docs/EXAMPLES.md)
162163
## Testing method completeness
163164

164165
To get a list of methods that are found via introspection but not found in any
165-
Pod 6 file under `doc/Type/`, use `util/list-missing-methods.p6`. It takes a
166+
Pod6 file under `doc/Type/`, use `util/list-missing-methods.p6`. It takes a
166167
directory or filepath as argument and limits the listing to the given file or
167-
any Pod 6-files found. All methods listed in `util/ignored-methods.txt` are
168+
any Pod6 files found. All methods listed in `util/ignored-methods.txt` are
168169
ignored.
169170

170171
## Debug mode
@@ -192,36 +193,39 @@ to display heading numbers.
192193

193194
## Reporting bugs
194195

195-
Report issues at https://github.com/perl6/doc/issues. You can
196+
Report issues at https://github.com/Raku/doc/issues. You can
196197
use
197-
[labels when tagging tickets](https://github.com/perl6/doc/labels),
198+
[labels when tagging tickets](https://github.com/Raku/doc/labels),
198199
among which these are probably the most common:
199200

200-
* [`docs`](https://github.com/perl6/doc/labels/docs) - missing or
201+
* [`docs`](https://github.com/Raku/doc/labels/docs) - missing or
201202
incorrect documentation;
202-
use [`NOTSPECCED`](https://github.com/perl6/doc/labels/NOTSPECCED)
203+
use [`NOTSPECCED`](https://github.com/Raku/doc/labels/NOTSPECCED)
203204
instead, if this is for a feature present in a compiler, but not in
204205
the Raku test suite.
205-
* [`search`](https://github.com/perl6/doc/labels/search) - the search
206+
* [`search`](https://github.com/Raku/doc/labels/search) - the search
206207
component, either for items that are on the site but not searchable,
207208
or for the search functionality itself.
208209

210+
## Contributing pull requests
211+
209212
If you would like to contribute documentation or other bug fixes, please use
210-
[GitHub's pull requests](https://github.com/perl6/doc/pulls).
213+
[GitHub's pull requests (PRs)](https://github.com/Raku/doc/pulls). For a complete
214+
recipe for a new PR contributor, check [this PR guide](https://github.com/tbrowder/tidbits/blob/master/Contributing-PRs.md).
211215

212216
## Building the documentation
213217

214218
Assuming that you have already forked and cloned the
215-
[perl6/doc](https://github.com/perl6/doc) repository, one of the first things
219+
[Raku/doc](https://github.com/Raku/doc) repository, one of the first things
216220
you probably want to do is to build the documentation on your local
217221
computer. To do this you will need:
218222

219223
- Raku (e.g., the Rakudo Raku implementation)
220224
- zef (the installer for third party Raku modules)
221-
- `Pod::To::HTML` (Raku module for converting Pod 6 objects to HTML)
225+
- `Pod::To::HTML` (Raku module for converting Pod6 objects to HTML)
222226
- [graphviz](http://www.graphviz.org/) (`sudo apt-get install graphviz` on Debian/Ubuntu)
223227
- [Mojolicious](https://metacpan.org/pod/Mojolicious)
224-
(optional; a Perl 5 web framework; it allows you to run a web
228+
(optional; a Perl web framework; it allows you to run a web
225229
app locally to display the docs)
226230
- [SASS](http://sass-lang.com/) Compiler
227231
- [highlights](https://github.com/perl6/atom-language-perl6) (optional; requires
@@ -250,7 +254,7 @@ use any other module installer for the modules needed (see below).
250254
#### Building the documentation
251255

252256
The program that builds the HTML version of the documentation
253-
(`htmlify.p6`) uses `Pod::To::HTML` to convert Pod 6 structures into HTML.
257+
(`htmlify.p6`) uses `Pod::To::HTML` to convert Pod6 structures into HTML.
254258
You'll also need `Pod::To::BigPage` and `Perl6::TypeGraph`. Install these modules like so:
255259

256260
$ zef install Pod::To::HTML Pod::To::BigPage Perl6::TypeGraph
@@ -263,15 +267,15 @@ you're good to go.
263267

264268
#### Mojolicious / Web Server
265269

266-
This is a Perl 5 web framework which is used to run the included
270+
This is a Perl web framework which is used to run the included
267271
web application that displays the HTML documentation in a web browser. It's
268272
no required for development, as the site is static and you can serve it using
269273
any other webserver.
270274

271275
The app *does* automatically convert the SASS file to CSS, so it's handy to
272276
use for that as well.
273277

274-
Mojolicious is written in Perl 5, so assuming that you use
278+
Mojolicious is written in Perl, so assuming that you use
275279
[`cpanm`](https://metacpan.org/pod/App::cpanminus),
276280
install this now:
277281

@@ -284,7 +288,7 @@ the `sass` command
284288

285289
$ sudo apt-get install ruby-sass
286290

287-
or the [CSS::Sass Perl 5 module](https://modules.raku.org/repo/CSS::Sass)
291+
or the [CSS::Sass Perl module](https://modules.raku.org/repo/CSS::Sass)
288292

289293
$ cpanm -vn CSS::Sass Mojolicious::Plugin::AssetPack
290294

@@ -318,12 +322,12 @@ You can skip all the above and just build and view documentation with these
318322
simple commands (if you have docker already installed):
319323

320324
$ docker build -t perl6-doc .
321-
$ docker run -p 3000:3000 -it -v `pwd`:/perl6/doc perl6-doc
325+
$ docker run -p 3000:3000 -it -v `pwd`:/Raku/doc perl6-doc
322326

323327
This will build the documentation for you by default and it will take some time,
324328
but for subsequent use you may want to skip build part if nothing has been changed:
325329

326-
$ docker run -p 3000:3000 -it -v `pwd`:/perl6/doc perl6-doc ./app-start
330+
$ docker run -p 3000:3000 -it -v `pwd`:/Raku/doc perl6-doc ./app-start
327331

328332
Now point your web browser to http://localhost:3000 to view the documentation.
329333

CREDITS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
Thanks,
1313

14-
The perl6/doc Team
14+
The Raku/doc Team
1515
PS: Yes, this looks remarkably like the Linux CREDITS format
1616
PPS: This file is encoded in UTF-8
1717

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN buildDeps=' \
2424
&& chmod +x "$n" \
2525
&& n stable
2626

27-
WORKDIR /perl6/doc
27+
WORKDIR /Raku/doc
2828
COPY . .
2929
RUN zef install zef && zef update && zef install --deps-only .
3030

META6.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"JSON::Fast",
1414
"Pod::To::BigPage:ver<0.5.1+>",
1515
"Pod::To::HTML:ver<0.6.1+>",
16+
"Pod::Utilities",
1617
"OO::Monitors",
1718
"File::Find",
1819
"Test::META",
@@ -28,7 +29,7 @@
2829
"Test-Files": "lib/Test-Files.pm6"
2930
},
3031
"support": {
31-
"source": "git://github.com/perl6/doc.git"
32+
"source": "git://github.com/Raku/doc.git"
3233
},
3334
"license": "Artistic-2.0",
3435
"tags": [
@@ -37,6 +38,6 @@
3738
"documentation",
3839
"reference"
3940
],
40-
"source-url": "git://github.com/perl6/doc.git",
41+
"source-url": "git://github.com/Raku/doc.git",
4142
"meta6": "0"
42-
}
43+
}

Makefile

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,31 @@ PATH := $(PATH)
33
DOCKER_IMAGE_NAME ?= p6doc
44
DOCKER_HOST_PORT ?= 3000
55
DOCKER_SELINUX_LABEL ?= 0
6-
COLON_Z := :Z
7-
SELINUX_OPT := $(shell [ $(DOCKER_SELINUX_LABEL) -eq 1 ] && echo "$(COLON_Z)" || echo '' )
8-
# dependencies for a new doc/Language build:
9-
LANG_POD6_SOURCE := $(wildcard doc/Language/*.pod6)
10-
# Managing of the language index page
11-
USE_CATEGORIES := True
12-
13-
.PHONY: html init-highlights html-nohighlight sparse assets webdev-build \
14-
bigpage test xtest ctest help run clean-html clean-images \
6+
ifeq ($(DOCKER_SELINUX_LABEL),1)
7+
SELINUX_OPT := :Z
8+
else
9+
SELINUX_OPT :=
10+
endif
11+
12+
.PHONY: html init-highlights assets \
13+
test xtest ctest help run clean-html clean-images \
1514
clean-search clean test-links push \
16-
gen-pod6-source clean-build \
15+
clean-cache \
1716
docker-image docker-test docker-xtest docker-ctest docker-testall docker-run
1817

19-
html: gen-pod6-source bigpage
18+
html: for-documentable
19+
documentable start -a -v --highlight
2020

21-
init-highlights:
21+
init-highlights highlights/package-lock.json:
2222
ATOMDIR="./highlights/atom-language-perl6"; \
2323
if [ -d "$$ATOMDIR" ]; then (cd "$$ATOMDIR" && git pull); \
2424
else git clone https://github.com/perl6/atom-language-perl6 "$$ATOMDIR"; \
2525
fi; cd highlights; npm install .; npm rebuild
2626

27-
assets:
27+
assets assets/assetpack.db:
2828
./app.pl assets
2929

30-
bigpage: gen-pod6-source
31-
pod2onepage --html -v --source-path=./build --exclude=404.pod6 > html/perl6.html
32-
33-
epub: bigpage
34-
pandoc html/perl6.html -o perl6.epub
30+
for-documentable: highlights/package-lock.json assets/assetpack.db
3531

3632
# Common tests that are run by travis with every commit
3733
test:
@@ -46,15 +42,11 @@ ctest:
4642
prove --exec perl6 -r t/07-tabs.t xt/perl-nbsp.t xt/trailing-whitespace.t
4743

4844
help:
49-
@echo "Usage: make [html|html-nohighlight|test|xtest|ctest]"
45+
@echo "Usage: make [html|test|xtest|ctest]"
5046
@echo ""
5147
@echo "Options:"
5248
@echo " html: generate the HTML documentation"
53-
@echo " html-nohighlight: generate HTML documentation without syntax highlighting"
5449
@echo " assets: generate CSS/JS assets"
55-
@echo " sparse: generate HTML documentation, but only every 10th file"
56-
@echo "webdev-build: generate only a few HTML files (useful for testing website changes)"
57-
@echo "bigpage: generate HTML documentation in one large file (html/perl6.html)"
5850
@echo "init-highlights: install prereqs for highlights (runs as part of 'make html')"
5951
@echo " test: run the test suite"
6052
@echo " xtest: run the test suite, including extra tests"
@@ -78,21 +70,21 @@ docker-image:
7870
docker build -t $(DOCKER_IMAGE_NAME) .
7971

8072
docker-test: docker-image
81-
docker run --rm -it -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
73+
docker run --rm -it -v $(REPO_PATH):/Raku/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
8274
/bin/bash -c 'make test'
8375

8476
docker-xtest: docker-image
85-
docker run --rm -it -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
77+
docker run --rm -it -v $(REPO_PATH):/Raku/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
8678
/bin/bash -c 'make xtest'
8779

8880
docker-ctest: docker-image
89-
docker run --rm -it -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
81+
docker run --rm -it -v $(REPO_PATH):/Raku/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
9082
/bin/bash -c 'make ctest'
9183

9284
docker-testall: docker-test docker-xtest docker-ctest
9385

9486
docker-run: docker-image
95-
docker run --rm -it -p $(DOCKER_HOST_PORT):3000 -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) \
87+
docker run --rm -it -p $(DOCKER_HOST_PORT):3000 -v $(REPO_PATH):/Raku/doc/$(SELINUX_OPT) \
9688
$(DOCKER_IMAGE_NAME) /bin/bash -c './app-start' &
9789

9890
clean-html:
@@ -112,15 +104,18 @@ clean-images:
112104
clean-search:
113105
rm -f html/js/search.js
114106

115-
clean-build:
116-
find build -name "*.pod6" -exec rm -f {} \;
117-
118-
remove-build:
119-
rm -rf build
107+
clean-cache:
108+
-rm -rf .cache-doc
120109

121-
clean: clean-html clean-images clean-search clean-build
110+
clean: clean-html clean-images clean-search
122111

123-
distclean: clean remove-build
112+
distclean: clean clean-cache
113+
-rm -rf assets/assetpack.db assets/cache
114+
-rm -rf highlights/atom-language-perl6/
115+
-rm -rf highlights/node_modules/
116+
-rm -rf highlights/package-lock.json
117+
-rm -rf html/css/app.css
118+
-rm -rf html/js
124119

125120

126121
test-links: links.txt

0 commit comments

Comments
 (0)