|
| 1 | +<!DOCTYPE html> |
| 2 | + <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | + <head> |
| 4 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 | + <title>Modelica Specification</title> |
| 7 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" /> |
| 8 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> |
| 9 | + <link rel="stylesheet" href="https://doc.modelica.org/Modelica%203.2.3/Resources/helpOM/style.css" /> |
| 10 | + </head> |
| 11 | + <body class="md-body"> |
| 12 | + <nav class="navbar navbar-light bg-light"> |
| 13 | + <div class="container justify-content-between flex-nowrap"> |
| 14 | + <span class="navbar-brand mb-0"> |
| 15 | + <a href="https://modelica.org/"><img src="https://raw.githubusercontent.com/modelica/MA-Logos/master/HighRes/Modelica_Language.svg" alt="Modelica Language logo" class="md-logo"></a> |
| 16 | + </span> |
| 17 | + <div id="head-selects"></div> |
| 18 | + </div> |
| 19 | + </nav> |
| 20 | + <div class="container pt-4"> |
| 21 | + <h1 class="pt-2 h2">Modelica Specification</h1> |
| 22 | +<table> |
| 23 | +<thead> |
| 24 | +<tr> |
| 25 | +<th>Version</th> |
| 26 | +<th>Link</th> |
| 27 | +<th>Published</th> |
| 28 | +<th>Changes</th> |
| 29 | +</tr> |
| 30 | +</thead> |
| 31 | +<tbody> |
| 32 | +<tr> |
| 33 | +<td>3.7-dev</td> |
| 34 | +<td><a href="https://github.com/modelica/ModelicaSpecification/tree/master">Master branch</a> <a href="https://specification.modelica.org/master/">HTML</a> <a href="https://specification.modelica.org/master/MLS.pdf">PDF</a></td> |
| 35 | +<td>not yet</td> |
| 36 | +<td><a href="https://github.com/modelica/ModelicaSpecification/issues?q=label%3AM37+is%3Aclosed">Search</a></td> |
| 37 | +</tr> |
| 38 | +<tr> |
| 39 | +<td>3.6</td> |
| 40 | +<td><a href="https://github.com/modelica/ModelicaSpecification/tree/maint/3.6">3.6 branch</a> <a href="https://specification.modelica.org/maint/3.6/MLS.html">HTML</a> <a href="https://specification.modelica.org/maint/3.6/MLS.pdf">PDF</a></td> |
| 41 | +<td>2023</td> |
| 42 | +<td><a href="https://github.com/modelica/ModelicaSpecification/issues?q=label%3AM36+is%3Aclosed">Search</a> <a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-6">HTML</a></td> |
| 43 | +</tr> |
| 44 | +<tr> |
| 45 | +<td>3.5</td> |
| 46 | +<td><a href="https://github.com/modelica/ModelicaSpecification/tree/maint/3.5">3.5 branch</a> <a href="https://specification.modelica.org/maint/3.5/MLS.html">HTML</a> <a href="https://specification.modelica.org/maint/3.5/MLS.pdf">PDF</a></td> |
| 47 | +<td>2021</td> |
| 48 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-5">HTML</a></td> |
| 49 | +</tr> |
| 50 | +<tr> |
| 51 | +<td>3.4</td> |
| 52 | +<td><a href="https://github.com/modelica/ModelicaSpecification/tree/maint/3.4">3.4 branch</a> <a href="https://specification.modelica.org/maint/3.4/MLS.html">HTML</a> <a href="https://modelica.org/documents/ModelicaSpec34.pdf">PDF</a></td> |
| 53 | +<td>2017</td> |
| 54 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-4">HTML</a></td> |
| 55 | +</tr> |
| 56 | +<tr> |
| 57 | +<td>3.3rev1</td> |
| 58 | +<td><a href="https://modelica.org/documents/ModelicaSpec33Revision1.pdf">PDF</a></td> |
| 59 | +<td>2014</td> |
| 60 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-3-revision-1">HTML</a></td> |
| 61 | +</tr> |
| 62 | +<tr> |
| 63 | +<td>3.2rev2</td> |
| 64 | +<td><a href="https://modelica.org/documents/ModelicaSpec32Revision2.pdf">PDF</a></td> |
| 65 | +<td>2013</td> |
| 66 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-2-revision-2">HTML</a></td> |
| 67 | +</tr> |
| 68 | +<tr> |
| 69 | +<td>3.2rev1</td> |
| 70 | +<td><a href="https://modelica.org/documents/ModelicaSpec32Revision1.pdf">PDF</a></td> |
| 71 | +<td>2012</td> |
| 72 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-2-revision-1">HTML</a></td> |
| 73 | +</tr> |
| 74 | +<tr> |
| 75 | +<td>3.3</td> |
| 76 | +<td><a href="https://modelica.org/documents/ModelicaSpec33.pdf">PDF</a></td> |
| 77 | +<td>2012</td> |
| 78 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-3">HTML</a></td> |
| 79 | +</tr> |
| 80 | +<tr> |
| 81 | +<td>3.2</td> |
| 82 | +<td><a href="https://modelica.org/documents/ModelicaSpec32.pdf">PDF</a></td> |
| 83 | +<td>2010</td> |
| 84 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-2">HTML</a></td> |
| 85 | +</tr> |
| 86 | +<tr> |
| 87 | +<td>3.1</td> |
| 88 | +<td><a href="https://modelica.org/documents/ModelicaSpec31.pdf">PDF</a></td> |
| 89 | +<td>2009</td> |
| 90 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-1">HTML</a></td> |
| 91 | +</tr> |
| 92 | +<tr> |
| 93 | +<td>3.0</td> |
| 94 | +<td><a href="https://modelica.org/documents/ModelicaSpec30.pdf">PDF</a></td> |
| 95 | +<td>2007</td> |
| 96 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-3-0">HTML</a></td> |
| 97 | +</tr> |
| 98 | +<tr> |
| 99 | +<td>2.2</td> |
| 100 | +<td><a href="https://modelica.org/documents/ModelicaSpec22.pdf">PDF</a></td> |
| 101 | +<td>2005</td> |
| 102 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-2-2">HTML</a></td> |
| 103 | +</tr> |
| 104 | +<tr> |
| 105 | +<td>2.1</td> |
| 106 | +<td><a href="https://modelica.org/documents/ModelicaSpec21.pdf">PDF</a></td> |
| 107 | +<td>2004</td> |
| 108 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-2-1">HTML</a></td> |
| 109 | +</tr> |
| 110 | +<tr> |
| 111 | +<td>2.0</td> |
| 112 | +<td><a href="https://modelica.org/documents/ModelicaSpec20.pdf">PDF</a></td> |
| 113 | +<td>2002</td> |
| 114 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-2-0">HTML</a></td> |
| 115 | +</tr> |
| 116 | +<tr> |
| 117 | +<td>1.4</td> |
| 118 | +<td><a href="https://modelica.org/documents/ModelicaSpec14.pdf">PDF</a></td> |
| 119 | +<td>2000</td> |
| 120 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-1-4">HTML</a></td> |
| 121 | +</tr> |
| 122 | +<tr> |
| 123 | +<td>1.3</td> |
| 124 | +<td><a href="https://modelica.org/documents/ModelicaSpec13norev.pdf">PDF</a></td> |
| 125 | +<td>1999</td> |
| 126 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-1-3">HTML</a></td> |
| 127 | +</tr> |
| 128 | +<tr> |
| 129 | +<td>1.2</td> |
| 130 | +<td><a href="https://modelica.org/documents/modelicaspec12norev.pdf">PDF</a></td> |
| 131 | +<td>1999</td> |
| 132 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-1-2">HTML</a></td> |
| 133 | +</tr> |
| 134 | +<tr> |
| 135 | +<td>1.1</td> |
| 136 | +<td><a href="https://modelica.org/documents/ModelicaSpec11.pdf">PDF</a></td> |
| 137 | +<td>1998</td> |
| 138 | +<td><a href="https://specification.modelica.org/maint/3.6/modelica-revision-history.html#modelica-1-1">HTML</a></td> |
| 139 | +</tr> |
| 140 | +<tr> |
| 141 | +<td>1.0</td> |
| 142 | +<td><a href="https://modelica.org/documents/Modelica1.pdf">PDF</a></td> |
| 143 | +<td>1997</td> |
| 144 | +<td /> |
| 145 | +</tr> |
| 146 | +</tbody> |
| 147 | +</table> |
| 148 | + </div> |
| 149 | + |
| 150 | + <div class="container"> |
| 151 | + <template id="md-tool-select"> |
| 152 | + <div class="md-item p-0"> |
| 153 | + <form class="form-inline align-items-end"> |
| 154 | + <input type="text" placeholder="Type your search..." class="form-control form-control-sm md-search-input mb-2 mr-sm-2"> |
| 155 | + <div class="input-group mb-2 mr-sm-2"> |
| 156 | + <select class="form-control form-control-sm md-item__version-select"></select> |
| 157 | + </div> |
| 158 | + <div class="input-group mb-2 mr-sm-2"> |
| 159 | + <a href="#" target="_blank" rel="noopener" class="btn btn-outline-secondary btn-sm btn-block md-item__link">Browse</a> |
| 160 | + </div> |
| 161 | + </form> |
| 162 | + </div> |
| 163 | + </template> |
| 164 | + <template id="md-tool-template"> |
| 165 | + <div class="md-item p-0"> |
| 166 | + <div class="md-item__description">Description</div> |
| 167 | + </div> |
| 168 | + </template> |
| 169 | + |
| 170 | + <div id="container" class="pb-4"></div> |
| 171 | + </div> |
| 172 | + </body> |
| 173 | + |
| 174 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> |
| 175 | + <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> |
| 176 | + |
| 177 | + <script> |
| 178 | + var data = { |
| 179 | + "versions": ["3.7-dev", "3.6", "3.5", "3.4"] |
| 180 | + }; |
| 181 | + |
| 182 | + var buildSelect = function(select, data){ |
| 183 | + while(select.firstChild) select.removeChild(select.firstChild); |
| 184 | + data.forEach(function (item) { |
| 185 | + var option = document.createElement('option'); |
| 186 | + option.textContent = item; |
| 187 | + option.value = item; |
| 188 | + select.appendChild(option); |
| 189 | + }); |
| 190 | + select[1].selected = 1; |
| 191 | + }; |
| 192 | + |
| 193 | + var initSelects = function(versions){ |
| 194 | + var container = document.createElement('div'); |
| 195 | + |
| 196 | + var template = document.getElementById('md-tool-select'); |
| 197 | + var clone = document.importNode(template.content, true); |
| 198 | + |
| 199 | + buildSelect(clone.querySelector('.md-item__version-select'), versions); |
| 200 | + |
| 201 | + clone.querySelector('.md-item__link').setAttribute('href', buildLink(versions[1])); |
| 202 | + |
| 203 | + container.appendChild(clone); |
| 204 | + document.getElementById('head-selects').appendChild(container); |
| 205 | + } |
| 206 | + |
| 207 | + var buildLink = function(version){ |
| 208 | + var link = ''; |
| 209 | + if(version == '3.7-dev'){ |
| 210 | + link = 'https://specification.modelica.org/master/MLS.html'; |
| 211 | + }else{ |
| 212 | + link = 'https://specification.modelica.org/maint/' + version + '/MLS.html'; |
| 213 | + } |
| 214 | + return link; |
| 215 | + } |
| 216 | + |
| 217 | + var updateSearch = function(version){ |
| 218 | + if(version == '3.7-dev'){ |
| 219 | + search.algoliaOptions.facetFilters = [ |
| 220 | + "version:master", |
| 221 | + "tags:specification", |
| 222 | + ] |
| 223 | + }else{ |
| 224 | + search.algoliaOptions.facetFilters = [ |
| 225 | + "version:" + version, |
| 226 | + "tags:specification", |
| 227 | + ] |
| 228 | + } |
| 229 | + } |
| 230 | + |
| 231 | + $(document).ready(function() { |
| 232 | + initSelects(data.versions); |
| 233 | + |
| 234 | + $('body').on('change', '.md-item__version-select', function(){ |
| 235 | + var version = $(this).val(); |
| 236 | + var link = buildLink(version); |
| 237 | + |
| 238 | + $('.md-item').find('.md-item__link').attr('href', link); |
| 239 | + |
| 240 | + updateSearch(version); |
| 241 | + }); |
| 242 | + |
| 243 | + |
| 244 | + search = docsearch({ |
| 245 | + apiKey: '97b18f2173101844a41539b817e99337', |
| 246 | + indexName: 'modelica', |
| 247 | + inputSelector: '.md-search-input', |
| 248 | + debug: false, // Set debug to true if you want to inspect the dropdown |
| 249 | + algoliaOptions: { |
| 250 | + advancedSyntax: true, |
| 251 | + typoTolerance: false, |
| 252 | + hitsPerPage: 16, |
| 253 | + facetFilters: ["version:3.6", "tags:specification"] |
| 254 | + } |
| 255 | + }); |
| 256 | + }); |
| 257 | + </script> |
| 258 | + |
| 259 | +</html> |
0 commit comments