SmallBASIC Github pages
If you want to edit the SmallBASIC website because information is missing, examples are not clear enough or maybe just to correct a typo, you can do it quite easy.
All website pages are written in Markdown. The files are located in:
_build/pages
: Almost all web pages_build/reference
: The command reference
To start editing:
- Create a Github account.
- Fork smallbasic.github.io.
- Change to the forked version in your account.
- Edit a
.markdown
file directly in Github in your browser. - Save the file and let Github make a commit.
- Start a pull-request.
- We will merge your changes or give you feedback how to proceed. Please don't worry. Even if you make a mistake, we will help you. We are happy for everyone who wants to participate.
-
Install SmallBASIC console version (sbasic)
-
Optional: Install SmallBASIC web server (sbasicw)
-
Install pandoc
-
Execute the following commands:
git clone https://github.com/smallbasic/smallbasic.github.io.git git clone https://github.com/smallbasic/smallbasic.samples.git cd smallbasic.github.io/_build export SAMPLE = PATH_TO_SMALLBASIC_SAMPLES make clean make
PATH_TO_SMALLBASIC_SAMPLES
is the absolute path to the sample directory, i.e./home/userxyz/smallbasic.samples
The SmallBASIC static website can be found in the root directory of
the smallbasic.github.io folder. To access the website locally
use the SmallBASIC webserver: sbasicw index.html
(or other
webservers like the python http-server: python -m http.server 8080
).
In the browser type: http://127.0.0.1:8080
.