Skip to content

About

OpenModelica webpage (https://openmodelica.org)

Resources

Stars

0 stars

Watchers

7 watching

Forks

Latest commit

 

History

1,091 Commits

Folders and files

Repository files navigation

In order to test the webpage locally:

hugo serve

This prints the URL at which you can preview the webpage (minus some files that are only on the server and not in Git). When files are modified, there is a JavaScript that will reload the browser window.

To create a new page:

hugo new content/news/openmodelica-1.21.0.md

And then edit the template in a text editor.

config.toml

The config.toml file contains parameters that can be used inside of articles. For example, it is possible to write code like:

Report bugs in [GitHub]({{< param "bugreporting" >}})

There are also parameters for the release, stable and nightly versions that can be used to generate webpages.

Download statistics

The Download Statistics page shows /api/statistics.json. That file is not in Git: the Jenkins job runs scripts/statistics.py before hugo, which reads the monthly numbers from the AWStats of build.openmodelica.org and writes static/api/statistics.json.

  • The numbers are the sum rows of the AWStats extra sections in scripts/awstats/extra-sections.conf, which must be part of /etc/awstats/awstats.conf.local on the web server.
  • The AWStats login is the Jenkins username/password credential with the ID awstats.
  • Pull requests and builds without the login reuse the published numbers.

To see the page locally with the published numbers:

python3 scripts/statistics.py
hugo serve

About

OpenModelica webpage (https://openmodelica.org)

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages