All Projects → Raku → Doc

Raku / Doc

Licence: artistic-2.0
🦋 Raku documentation (tools and docs)

Projects that are alternatives of or similar to Doc

Pdoc
🐍 ➡️ 📜 Auto-generate API documentation for Python projects
Stars: ✭ 604 (+133.2%)
Mutual labels:  hacktoberfest, documentation, docs
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
Stars: ✭ 287 (+10.81%)
Mutual labels:  documentation, docs, reference
Sentry Docs
The new place for the sentry documentation (and tools to build it)
Stars: ✭ 160 (-38.22%)
Mutual labels:  hacktoberfest, documentation, docs
Pyspark Cheatsheet
🐍 Quick reference guide to common patterns & functions in PySpark.
Stars: ✭ 108 (-58.3%)
Mutual labels:  documentation, docs, reference
Cordova Docs
Apache Cordova Documentation
Stars: ✭ 315 (+21.62%)
Mutual labels:  hacktoberfest, documentation, docs
Github Template Guidelines
Guidelines for building GitHub templates.
Stars: ✭ 137 (-47.1%)
Mutual labels:  documentation, docs, reference
Site
🎓 Rust Programming Language Tutorials for Everyone!
Stars: ✭ 786 (+203.47%)
Mutual labels:  documentation, tutorial, reference
Circleci Docs
Documentation for CircleCI.
Stars: ✭ 501 (+93.44%)
Mutual labels:  hacktoberfest, documentation, docs
Typescript Vs Flowtype
Differences between Flowtype and TypeScript -- syntax and usability
Stars: ✭ 1,671 (+545.17%)
Mutual labels:  hacktoberfest, documentation, reference
Docs
Various Yii 3.0 related documentation
Stars: ✭ 159 (-38.61%)
Mutual labels:  hacktoberfest, docs
Jenkins.io
A static site for the Jenkins automation server
Stars: ✭ 165 (-36.29%)
Mutual labels:  hacktoberfest, documentation
Front End Performance Checklist
🎮 더 빠르게 작동하는 프론트엔드 성능 체크리스트
Stars: ✭ 183 (-29.34%)
Mutual labels:  hacktoberfest, reference
Documentation
Pantheon Docs
Stars: ✭ 157 (-39.38%)
Mutual labels:  hacktoberfest, documentation
Dvc.org
🔗 DVC website and documentation
Stars: ✭ 171 (-33.98%)
Mutual labels:  hacktoberfest, documentation
Home Assistant.io
📘 Home Assistant User documentation
Stars: ✭ 2,377 (+817.76%)
Mutual labels:  hacktoberfest, documentation
Ru.javascript.info
Современный учебник JavaScript
Stars: ✭ 2,648 (+922.39%)
Mutual labels:  hacktoberfest, tutorial
React Navigation.github.io
Home of the documentation and other miscellanea
Stars: ✭ 207 (-20.08%)
Mutual labels:  hacktoberfest, documentation
Symfony Docs
The Symfony documentation
Stars: ✭ 1,924 (+642.86%)
Mutual labels:  hacktoberfest, docs
Training Material
A collection of Galaxy-related training material
Stars: ✭ 184 (-28.96%)
Mutual labels:  hacktoberfest, tutorial
Hacktoberfest
This hacktoberfest project exists to help you submit your first Pull Request and welcome you to the world of open source!
Stars: ✭ 216 (-16.6%)
Mutual labels:  hacktoberfest, tutorial

Official Documentation of Raku

Build Status artistic Run Status CircleCI

An HTML version of this documentation can be found at https://docs.raku.org/ and also at rakudocs.github.io (which is actually updated more frequently). This is currently the recommended way to consume the documentation.

Docker container

This documentation is also published as the jjmerelo/perl6-doc Docker container. It includes a copy of the web published on port 3000, so you can run it with:

docker run --rm -it -p 3000:3000 jjmerelo/perl6-doc

or

docker run --rm -it -p 31415:3000 jjmerelo/perl6-doc

in case you want it published somewhere else. You can direct your browser to http://localhost:3000 (or 31415, as the case may be).

README in other languages

Install rakudoc

Please see https://github.com/Raku/rakudoc for the command line tool for viewing the documentation

Building the HTML documentation

Note: If you just want a copy of the build HTML site and don't want to deal with the build yourself, you can clone it from here: https://github.com/rakudocs/rakudocs.github.io

The documentation can be rendered to static HTML pages and/or served in a local web site. This process involves creating a cache of precompiled documents, so that generation after the first time is sped up.

These are the prerequisites you need to install to generate documentation.

  • perl 5.20 or later
  • node 10 or later.
  • graphviz.
  • Documentable.

Please follow these instructions (in Ubuntu) to install them

sudo apt install perl graphviz # perl not installed by default in 18.04
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
cpanm --installdeps .
zef install --deps-only . ; # from inside this checkout

You can install perl and node any way you want, including version managers, as long as they're available to run from the command line.

This should install all needed requisites, now you can clone this repository and start building process:

git clone https://github.com/Raku/doc.git # clone the repo
cd doc # move to the clone of the repo
# Generate CSS and JS, install highlighting modules, build cache and pages
make html

You need to do this only the first time to build the cache. When there's some change in the source (done by yourself or pulled from the repo),

make update-html

will re-generate only affected pages.

Documentation will be generated in the html subdirectory. You can use it pointing any static web server at that directory, or use the development server based on Mojolicious using

make run

This will serve the documentation in port 3000.

Building the EPUB and/or the "single big page HTML" documentation

The documentation can also be generated in the EPUB format as well as the "single big page HTML" format. Please note that some features (e.g. inherited methods and type graph in the Types section, or syntax highlighting of the code examples) are not (yet) available in these formats.

These are the prerequisites you need to install:

  • Pod::To::BigPage 0.5.2 or later
  • Pandoc (EPUB only)

You can follow these instructions to install them on Ubuntu or Debian:

zef install "Pod::To::BigPage:ver<0.5.2+>"
sudo apt install pandoc     # only if you want to generate EPUB

Now that you have the dependencies installed, clone this repository and generate the EPUB or "single big page HTML" documentation:

git clone https://github.com/Raku/doc.git # clone this repo
cd doc      # enter the cloned repo
make epub           # for the EPUB format,
                    # for the "single big page HTML" format use `make bigpage` instead

The generated EPUB output you will find in the raku.epub file in the root of the repository and the generated "single big page HTML" output in html/raku.html.

nginx configuration

Latest version of the generated documentation consists only of static HTML pages. All pages are generated with .html at the end; however, most internal links don't use that suffix. Most web servers (for instance, the one that serves with GitHub pages) will add it automatically for you. A bare server will not. This is what you have to add to the configuration to make it work:

    location / {
        try_files $uri $uri/ $uri.html /404.html;
    }

This will rewrite the URLs for you. Equivalent configuration might have to be made in other server applications.


Help Wanted!

Raku is not a small language, and documenting it and maintaining that documentation takes a lot of effort. Any help is appreciated.

Here are some ways to help us:

  • Add missing documentation for classes, roles, methods or operators.
  • Add usage examples to existing documentation.
  • Proofread and correct the documentation.
  • Tell us about missing documentation by opening issues on Github.
  • Do a git grep TODO in this repository, and replace the TODO items by actual documentation.

Issues page has a list of current issues and documentation parts that are known to be missing and the CONTRIBUTING document explains briefly how to get started contributing documentation.


Some notes:

Q: Why aren't you embedding the docs in the CORE sources?
A: Several reasons:

  1. This documentation is intended to be universal with respect to a given version of the specification, and not necessarily tied to any specific Raku implementation.
  2. Implementations' handling of embedded Pod is still a bit uneven; this avoids potential runtime impacts.
  3. A separate repo in the Raku Github account invites more potential contributors and editors.

Q: Should I include methods from superclasses or roles?
A: No. The HTML version already includes methods from superclasses and roles.


Vision

I want p6doc and docs.raku.org to become the No. 1 resource to consult when you want to know something about a Raku feature, be it from the language, or built-in types and routines. I want it to be useful to every Raku programmer.

-- moritz


ENV VARS

  • P6_DOC_TEST_VERBOSE to a true value to display verbose messages during test suite run. Helpful when debugging failing test suite.
  • P6_DOC_TEST_FUDGE fudges skip-test code examples as TODO in xt/examples-compilation.t test.

UPDATES

Updates are done for the time being by hand. This probably needs improvement.

LICENSE

The code in this repository is available under the Artistic License 2.0 as published by The Perl Foundation. See the LICENSE file for the full text.

This repository also contains code authored by third parties that may be licensed under a different license. Such files indicate the copyright and license terms at the top of the file. Currently these include:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].