Skip to content

sdfg610/docs.uppaal.org

 
 

Repository files navigation

This repo contains the source for building the UPPAAL help files. The documentation is automatically build and published to https://docs.uppaal.org.

If you wish to contribute to the documentation please fork the repo and submit a pull-request. Please notice, by creating a pull-request you give the UPPAAL development team permission to use and distribute you changes together with UPPAAL, this includes the commercial versions of UPPAAL.

Build pages locally

Release

Updated theme

git subtree pull --prefix=themes/hugo-theme-learn https://github.com/matcornic/hugo-theme-learn.git master --squash

Build for Offline

We build the documentation of offline reading and includes it with the UPPAAL distribution. To build the offline version please notice the following changes:

General config

Change config to:

baseURL = "."
canonifyURLs = "true"
uglyURLs="true"
relativeURLs="true"

Update Search

Some browsers CORS settings does not allow loading json via file:// protocol. To circumvent this issue we inline the content of index.json into search.js function initLunr. Update search.js - initLunr to contain the following:

function initLunr() {
    if (!endsWith(baseurl,"/")){
        baseurl = baseurl+'/'
    };

    #pagesIndex = [{...}...]
    pagesIndex = <Content of index.json>;
    
        lunrIndex = lunr(function() {
                this.ref("uri");
                this.field('title', {
		    boost: 15
                });
                this.field('tags', {
		    boost: 10
                });
                this.field("content", {
		    boost: 5
                });
				
                this.pipeline.remove(lunr.stemmer);
                this.searchPipeline.remove(lunr.stemmer);
				
                // Feed lunr with each file and let lunr actually index them
                pagesIndex.forEach(function(page) {
		    this.add(page);
                }, this);
            })
}

About

This repo contains the official UPPAAL documentation published on https://docs.uppaal.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 44.4%
  • HTML 30.6%
  • JavaScript 22.7%
  • GAP 2.2%
  • q 0.1%