All Projects → HaxeFoundation → Code Cookbook

HaxeFoundation / Code Cookbook

The Haxe Code Cookbook - A community driven resource website for learning Haxe in practise

Programming Languages

haxe
709 projects

Projects that are alternatives of or similar to Code Cookbook

Documentation Html Template
A Sample Documentation Template for Themes, Templates and Plugins
Stars: ✭ 322 (+283.33%)
Mutual labels:  documentation, website
Docusaurus
Easy to maintain open source documentation websites.
Stars: ✭ 29,053 (+34486.9%)
Mutual labels:  documentation, website
Website
Yarn package manager website
Stars: ✭ 374 (+345.24%)
Mutual labels:  documentation, website
Nix.dev
An opinionated guide for developers wanting to get things done with Nix.
Stars: ✭ 300 (+257.14%)
Mutual labels:  documentation, cookbook
Papogen
Use Sass/CSS + Pug + Node.js to generate beautiful static website.
Stars: ✭ 37 (-55.95%)
Mutual labels:  documentation, website
Cordova Docs
Apache Cordova Documentation
Stars: ✭ 315 (+275%)
Mutual labels:  documentation, website
Ru.reactjs.org
React documentation website in Russian / Официальная русская версия сайта React
Stars: ✭ 444 (+428.57%)
Mutual labels:  documentation, website
Swagger Toolbox
💡 Swagger schema model (in yaml, json) generator from json data
Stars: ✭ 194 (+130.95%)
Mutual labels:  documentation, website
Docslikecode
Read stories, learn through practice, share with others, to treat docs as code.
Stars: ✭ 28 (-66.67%)
Mutual labels:  documentation, website
Website
🌐 The Babel documentation website
Stars: ✭ 631 (+651.19%)
Mutual labels:  documentation, website
Dlang.org
Pages for the dlang.org website, home of the D Programming Language
Stars: ✭ 274 (+226.19%)
Mutual labels:  documentation, website
Valadoc Org
Build tools used to generate valadoc.org
Stars: ✭ 60 (-28.57%)
Mutual labels:  documentation, website
Echox
Echo cookbook and website
Stars: ✭ 275 (+227.38%)
Mutual labels:  cookbook, website
Easy Hexo
🤘 Build your own website with Hexo, the easy way. | 轻松使用 Hexo 建站。
Stars: ✭ 314 (+273.81%)
Mutual labels:  documentation, website
Preact Www
📖 Preact documentation website.
Stars: ✭ 272 (+223.81%)
Mutual labels:  documentation, website
Rabbitmq Website
RabbitMQ website and documentation guides
Stars: ✭ 433 (+415.48%)
Mutual labels:  documentation, website
Jenkins.io
A static site for the Jenkins automation server
Stars: ✭ 165 (+96.43%)
Mutual labels:  documentation, website
Dvc.org
🔗 DVC website and documentation
Stars: ✭ 171 (+103.57%)
Mutual labels:  documentation, website
Reactjs.org
The React documentation website
Stars: ✭ 6,697 (+7872.62%)
Mutual labels:  documentation, website
Getkirby.com
Source code and content for the Kirby website
Stars: ✭ 57 (-32.14%)
Mutual labels:  documentation, website

Haxe Code Cookbook

Build Status

Sources for the Haxe Code Cookbook site, a community driven resource website for learning Haxe in practise.

The repository contains a static website generator, which converts markdown articles into a website. The project is being developed here on GitHub, feel free to contribute Haxe related code snippets and tutorials.

Structure

  • The actual articles are in assets/content/cookbook, organized per folder.
  • The html template files are in assets/content/.
  • The static files (css, js, images) files are in assets/includes/.
  • The Haxe source files of the generator are in src/.
  • The website-generated content will output in output/ (excluded from git).

Contributing

Contributing changes

To contribute a change, you have to make a pull request. This can be done using the GitHub website or by fork/cloning the project.

Contributing using GitHub as online editor

This is the easiest way of doing small changes:

  • Navigate to an article on https://code.haxe.org and press the edit button on any page: image
  • You are redirected to GitHub. Once you have an account and are logged in, you can make the change in the online editor.
  • Set the description / what you changed and press the Request change button: image
  • A pull request will be created. GitHub makes a fork for you automatically.
Contributing using a fork

This would also allow to test/see the changes before submitting which is also useful when you want to add new pages.

  • Make a fork (on GitHub) of the project.
  • Checkout your repo on your machine, create a new branch for the pull request.
  • Make the changes in that new branch.
  • Push the commits (they go to your fork).
  • On GitHub, you make a pull request from your fork's branch to the original repo.

Creating articles

Please add/edit the articles (markdown files) in the assets folder and do a pull request. The scope of the cookbook includes the core language, the standard library, and also any libraries maintained by the Haxe Foundation.

Formatting

It would be nice if you keep the formatting of the code in the same style as used already:

  • Braces on same line.
  • Two-space indentation.
  • No type-hints for local variables and function return unless it's instructive.
  • Type-hints for fields.
  • Type-hints for function arguments unless it's very obvious.
  • Judicious use of extra line-breaks to avoid ugly automatic breaks (check the output).

Other remarks

  • The first heading is used in the navigation. Keep this title short.
  • The first paragraph is used as description. Describe what the content of the article is about.
  • Use > Author: [Name](https://github.com/username) to mark yourself as author of the article. The other contributors are inferred from git commits.
  • Tag the article using [tags]: / "tag1,tag2" (no spaces). Try to use an existing tag.
  • Mention the author / sources at the bottom of the page.
  • If you want to include a try.haxe.org code snippet use [tryhaxe](https://try.haxe.org/embed/76f24).
  • If you want to include a YouTube video use [youtube](https://www.youtube.com/watch?v=dQw4w9WgXcQ).
  • If possible, link to related pages in the Haxe Manual / API documentation.
  • If you want to use images or other includes, create a folder called assets in the same directory as the article and link to that.

This would be a typical template to use. Use ```haxe for syntax highlighting:

[tags]: / "class,array,json,building-fields"

# Title of the page

Description and explanation of the code.

## Implementation
```haxe
class Main {
  // Code here
}
```

## Usage

Description of how to use/test the code.

```haxe
class Test {
  // Code here
}
```

> More on this topic: 
> 
> * [Class field in Haxe Manual](https://haxe.org/manual/class-field.html)
> 
> Author: [Name](https://github.com/username)

Running a local copy

To run the project you can use Neko:

Call neko CodeCookBook.n to re-generate the output files.

Contributing to the generator

You need Haxe 3.4.2+ installed.

The static site generator source depends on hxtemplo and haxe-markdown.

Install the libraries using haxelib, run the following command in the root of the project:

haxelib install all

The CSS files are compressed using less. Install from npm:

npm install -g less
npm install -g less-plugin-clean-css
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].