Mercurial > web-octave
changeset 227:9057b6832c9a
Improve syntax highlight with fenced markup.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 29 Sep 2020 13:18:39 +0900 |
parents | eb7a3afdad8b |
children | 236c0b1f7515 |
files | css/app.css pages/index.md pages/menu/bugs.md pages/menu/download.md pages/menu/get-involved.md pages/missing.md |
diffstat | 6 files changed, 18 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/css/app.css Wed Sep 23 09:45:01 2020 +0900 +++ b/css/app.css Tue Sep 29 13:18:39 2020 +0900 @@ -120,7 +120,8 @@ padding: 0; } -.highlight { +div.highlight, +figure.highlight { margin: 0 0 1.5rem 0; border: 1px solid #ccc; padding: 0.5em;
--- a/pages/index.md Wed Sep 23 09:45:01 2020 +0900 +++ b/pages/index.md Tue Sep 29 13:18:39 2020 +0900 @@ -58,13 +58,13 @@ <div class="cell auto"> {%- include code1.html -%} <!-- -{%- highlight octave -%} +```octave b = [4; 9; 2] # Column vector A = [ 3 4 5; 1 3 1; 3 5 9 ] x = A \ b # Solve the system Ax = b -{%- endhighlight -%} +``` --> </div> </div> @@ -79,14 +79,14 @@ <div class="cell auto"> {%- include code2.html -%} <!-- -{%- highlight octave -%} +```octave x = -10:0.1:10; # Create an evenly-spaced vector from -10..10 y = sin (x); # y is also a vector plot (x, y); title ("Simple 2-D Plot"); xlabel ("x"); ylabel ("sin (x)"); -{%- endhighlight -%} +``` --> <a href="#" class="button small-only-expanded" data-open="plotModal">Click here to see the plot output</a> </div> @@ -114,9 +114,9 @@ Assuming you have Mercurial installed on your machine you may obtain the latest development version of Octave sources with the following command: -{% highlight text %} +``` hg clone https://www.octave.org/hg/octave -{% endhighlight %} +``` [Get involved]({{ "/get-involved.html" | relative_url }}) in Octave development.
--- a/pages/menu/bugs.md Wed Sep 23 09:45:01 2020 +0900 +++ b/pages/menu/bugs.md Tue Sep 29 13:18:39 2020 +0900 @@ -39,10 +39,10 @@ 3. **Missing function in Octave** - If the function is - [part of some Octave Forge package]({{ site.sourceforge_url }}/functions_by_alpha.php), + [part of an Octave package]({{ site.sourceforge_url }}/functions_by_alpha.php), this is **not** a bug. - If the function **exists in Matlab**, - but **not in core Octave** and **not in Octave Forge packages**, + but **not in core Octave** and **not in an Octave package**, that is a bug. <p></p>
--- a/pages/menu/download.md Wed Sep 23 09:45:01 2020 +0900 +++ b/pages/menu/download.md Tue Sep 29 13:18:39 2020 +0900 @@ -73,9 +73,9 @@ ### Microsoft Windows {#ms-windows2} <div class="primary callout small" data-closable> -<b>Note:</b> All installers below bundle several <b>Octave Forge packages</b> +<b>Note:</b> All installers below bundle several <b>Octave packages</b> so they don't have to be installed separately. -After installation type <code>pkg list</code> to list them. +After installation type <code>pkg list</code> to list them.<br> <a href="{{ site.wiki_url }}/Octave_for_Microsoft_Windows">Read more.</a> <a href="#ms-windows" class="close-button" aria-label="Dismiss alert" type="button" data-close> <span aria-hidden="true">×</span>
--- a/pages/menu/get-involved.md Wed Sep 23 09:45:01 2020 +0900 +++ b/pages/menu/get-involved.md Tue Sep 29 13:18:39 2020 +0900 @@ -9,12 +9,13 @@ and there are many ways you can contribute. You can help by fixing bugs, developing new features, -writing [Octave Forge packages]({{ site.sourceforge_url }}), +writing Octave packages, answering questions in Discourse, helping to improve the web pages. If you are wondering what to work on, we have a standard answer: -**What would you like to work on?** + + **What would you like to work on?** For some inspiration, we do maintain a [list of possible projects]({{ site.wiki_url }}/Projects) @@ -36,10 +37,8 @@ [https://hg.savannah.gnu.org/hgweb/octave](https://hg.savannah.gnu.org/hgweb/octave). You obtain the latest development version of Octave sources with the following command: - -{% highlight text %} +``` hg clone https://www.octave.org/hg/octave -{% endhighlight %} - +``` The [Developer FAQ]({{ site.wiki_url }}/Developer_FAQ) on the Octave Wiki contains more detailed and recent information about Octave development.
--- a/pages/missing.md Wed Sep 23 09:45:01 2020 +0900 +++ b/pages/missing.md Tue Sep 29 13:18:39 2020 +0900 @@ -15,7 +15,7 @@ This is what you can do now: - Check if the function is - [part of some Octave Forge package]({{ site.sourceforge_url }}/functions_by_alpha.php) + [part of some Octave package]({{ site.sourceforge_url }}/functions_by_alpha.php) - [Report a bug]({{ "bugs.html" | relative_url }}) - [Implement the feature yourself]({{ "get-involved.html" | relative_url }}) - [Get commercial support]({{ "commercial-support.html" | relative_url }})