make dev- Adapt
versionandversion_yearin src/_data/const.yml - or: Write version number in line 1, as array in line 2 and year in line 3 in VERSION and call
make versionwrite
- or: Get version number from JSXGraph project (in same directory as this project):
make version
- File:
src/about/releases/_releases-list.section.md
Build files in distrib/
make build- build and upload:
make release - upload only:
make upload # upload prebuild distrib directoryThe Upload does:
- Copy files in distrib/ to the server via:
scp -r distrib/ root@132.180.10.7:/net/httpd/htdocs/jsxgraph/home.new
- Link new version to https://jsxgraph.org and link https://jsxgraph.uni-bayreuth.de via
ssh root@132.180.10.7 "cd /net/httpd/htdocs/jsxgraph/; rm -r home.old; mv home home.old; mv home.new home;"
To refer an image or document within this page use the reference a follows:
- Start the reference with
{{ relBase }}. - After this, add
/. - Now define the path to the file from root file of the homepage.
For links use one of the following syntax:
[<Text>]({{ relBase }}/<Link>) # to refer an internal site or file.
[<Text>](https://<link>) # to refer an external webpage.Links are automatically supplemented with target="_blank" if
- they contain a link beginning with
http://orhttps://. - they refer to a file ending with
.pdf,.jpg,.png,.svg,.sketcho,.zip,.woffor.ttf. These links are also preceded by an icon.
You can include any board via
{%- capture jscode %}
... // js code
{% endcapture -%}
{%
include part/board.html
js=jscode // mandatory
boardid=... // mandatory
title=... // optional
title_pos=... // before or after
link=... // optional
target=... // _self or _blank
class=... // optional
class_title=... // optional
width=... // optional
height=... // optional
aspect_ratio=... // optional
max_width=... // optional
%}
or with a separate file _[].js:
{%
include part/board.html
jsfile=... // mandatory name of file between _ and .js
boardid=... // mandatory
title=... // optional
title_pos=... // before or after
link=... // optional
target=... // _self or _blank
class=... // optional
class_title=... // optional
width=... // optional
height=... // optional
aspect_ratio=... // optional
max_width=... // optional
%}
Change theme by executing
rougify style ... > src/assets/less/code_highlighting.cssFollowing styles are available:
base16, base16.dark, base16.light, base16.monokai, base16.monokai.dark, base16.monokai.light, base16.solarized, base16.solarized.dark,
base16.solarized.light, bw, colorful, github, github.dark, github.light, gruvbox, gruvbox.dark, gruvbox.light, igorpro,
magritte, molokai, monokai, monokai.sublime, pastie, thankful_eyes, tulip
<a type="button" colorclass="<colorclass>" href="{{ relBase }}/url/to/your/target">
title
</a>{% include part/copybutton.html data="<content>" %}
It is important to use either <a type="button" or <button type="button" and no class.
The attribute colorclass can also been omitted.
Add images by using one of the following lines
<img src="{{ relBase }}/<link-to-image>" alt="<title>">
by replacing <link-to-image> and <title>.
Pay attention to this.
Images always have a width of 100%. If you would like to have a different formatting, use section image.
The following sections (and params) are possible:
| layout | data attribute | type | possible values and defaults | effect |
|---|---|---|---|---|
| text | class | optional | e.g. "bg-primary" for background color | css class for div |
| subpages | parent | optional | id of page (default: this page) | id of parent page |
| polygon | optional | shape (default: detault_polygon) | shape of boxes | |
| image-block | image | obligatory | url starting with / |
path to the image or gif |
| image_pos | optional | first | second | the image is to the left or right of the text block | |
| image1 | image | obligatory | url starting with / |
path to the image or gif |
| title | optional | plain text | optional title displayed in the bottom right corner | |
| width | optional | dimension with unit, default: 100% | optional dimension | |
| class | optional | e.g. "mx-auto" for centering | css class for img | |
| blogs | delimiter_header | optional | #␣ | @... | lines beginning with this string are used as headers |
| delimiter_badge | optional | >␣ | @... | badge after header line | |
| badge_is_date | optional | false | @... | string which formats date | |
| delimiter_id | optional | >␣ | @... | id after header line | |
| n | optional | -1 | 1 | 2 | 3 | ... | maximum entries | |
| accordion | delimiter_header | optional | #␣ | @... | lines beginning with this string are used as headers |
| delimiter_badge | optional | >␣ | @... | badge after header line | |
| badge_is_date | optional | false | @... | string which formats date | |
| delimiter_id | optional | >␣ | @... | id after header line | |
| n | optional | -1 | 1 | 2 | 3 | ... | maximum entries | |
| arrows | optional | right | left | position of arrow | |
| open | optional | -1 | 0 | 1 | 2 | ... | which entry should be open? | |
| cards | delimiter_header | optional | #␣ | @... | lines beginning with this string are used as headers |
| delimiter_image | optional | >␣ | @... | image after header line | |
| delimiter_link | optional | >␣ | @... | link after header line | |
| delimiter_id | optional | >␣ | @... | id after header line | |
| n | optional | -1 | 1 | 2 | 3 | ... | maximum entries | |
| board-block | boardid | obligatory | unique id | unique id that is used in code_file |
| board_pos | optional | first | second | the board is to the left or right of the text block | |
| title | optional | plain text | subtitle under the board | |
| link | optional | url | link for the subtitle | |
| target | optional | _blank | _self | target for the link (default will be calculated) | |
| width | optional | 100% | ... | width of the board | |
| height | optional | auto | ... | height of the board | |
| aspect_ratio | optional | 1/1 | ... | aspect-ratio of the board | |
| code_file | optional | url starting with / |
path to the js file (default is same as file with ending .js) | |
| board1 | code_file | optional | url starting with / |
path to the js file (default is same as file with ending .js) |
| boardid | obligatory | unique id | unique id that is used in code_file | |
| title | optional | plain text | subtitle under the board | |
| link | optional | url | link for the subtitle | |
| target | optional | _blank | _self | target for the link (default will be calculated) | |
| width | optional | 500px | ... | width of the board | |
| max_width | optional | 100% | ... | max-width of the board | |
| height | optional | auto | ... | height of the board | |
| aspect_ratio | optional | 1/1 | ... | aspect-ratio of the board | |
| class | optional | e.g. "mx-auto" for centering | css class for board |
Notes: