Skip to content

Commit

Permalink
Migrate docs to AsciiDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ghewgill committed Nov 4, 2023
1 parent 918cbef commit e98b114
Show file tree
Hide file tree
Showing 49 changed files with 6,453 additions and 1,880 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ CTestTestfile.cmake

# CMake output for Ninja
*.ninja

# Antora code
node_modules/
# Antora build output
build/
18 changes: 18 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
site:
title: Neon Language
start_page: neon-lang::index.adoc
url: https://neon-lang.dev
content:
sources:
- url: /home/greg/neon-lang
start_path: docs
ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: True
supplemental_files:
- path: partials/header-content.hbs
contents: ./supplemental-ui/partials/header-content.hbs
#antora:
# extensions:
# - '@antora/lunr-extension' -- requires newer version of nodejs
1 change: 0 additions & 1 deletion docs/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

Empty file removed docs/_static/.gitignore
Empty file.
Empty file removed docs/_templates/.gitignore
Empty file.
9 changes: 9 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: neon-lang
title: Neon
version: 0.1
prerelease: "-alpha"
start_page: intro.adoc
nav:
- modules/ROOT/nav-start.adoc
- modules/reference/nav.adoc
- modules/ROOT/nav-end.adoc
172 changes: 0 additions & 172 deletions docs/conf.py

This file was deleted.

3 changes: 0 additions & 3 deletions docs/extensions.rst

This file was deleted.

28 changes: 0 additions & 28 deletions docs/index.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/library.rst

This file was deleted.

36 changes: 0 additions & 36 deletions docs/make.bat

This file was deleted.

3 changes: 3 additions & 0 deletions docs/modules/ROOT/nav-end.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* xref:library.adoc[Standard Library]
* xref:extensions.adoc[Extensions]
* xref:samples.adoc[Samples]
4 changes: 4 additions & 0 deletions docs/modules/ROOT/nav-start.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* xref:intro.adoc[Introduction]
* xref:manifesto.adoc[Manifesto]
* xref:tutorial.adoc[Tutorial]
* xref:overview.adoc[Overview]
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/extensions.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= Extensions
3 changes: 1 addition & 2 deletions docs/intro.rst → docs/modules/ROOT/pages/intro.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Introduction
============
= Introduction

Neon is a high-level, statically typed, garbage collected, imperative programming language intended for teaching and learning the craft of programming.
Its design borrows features from many popular languages, yet carefully avoids common errors encountered by beginning programmers in other languages.
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/library.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Standard Library

See link:../../../html/[Standard Library].
27 changes: 9 additions & 18 deletions docs/manifesto.rst → docs/modules/ROOT/pages/manifesto.adoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Manifesto
=========
= Manifesto

Programming languages today are full of features, and there is a trend toward brevity.
Brevity is highly expressive, for an expert who understands the notation.
However, for a new learner or a casual user, brevity promotes unreadable code.

Principles of Design
--------------------
== Principles of Design

* Prefer keywords over punctuation
* Good error messages
Expand All @@ -16,37 +14,30 @@ Principles of Design
* Principle of least surprise
* Easy lookup

Prefer keywords over punctuation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== Prefer keywords over punctuation

Punctuation is important, but it should be used sparingly.

Good error messages
^^^^^^^^^^^^^^^^^^^
== Good error messages

Error messages should explain what is wrong, with suggestions of ways to correct the problem.

Avoid implicit behaviour
^^^^^^^^^^^^^^^^^^^^^^^^
== Avoid implicit behaviour

There will be no hidden, implicit, or automatic calls made to code that is not expressly visible in the source.

Explicit declarations
^^^^^^^^^^^^^^^^^^^^^
== Explicit declarations

Everything is declared, and identifiers from modules are always qualified.

Single meaning per keyword/operator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== Single meaning per keyword/operator

To the greatest reasonable extent, keywords and operators only have one meaning.

Principle of least surprise
^^^^^^^^^^^^^^^^^^^^^^^^^^^
== Principle of least surprise

This one is hard to quantify, but it's good.

Easy lookup
^^^^^^^^^^^
== Easy lookup

By using keywords instead of punctuation, and by using explicit declarations, it is easy to look up unknown things in the documentation.
Loading

0 comments on commit e98b114

Please sign in to comment.