We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Verified Commit b7e6331e authored by Camil Staps's avatar Camil Staps 🚀

Update for new documentation style rules and removed syntax descriptions

parent 123d6370
definition module Builtins
from CloogleDB import :: Location, :: FunctionEntry, :: ClassEntry,
:: TypeDefEntry, :: SyntaxEntry, :: SyntaxResultExtras
:: TypeDefEntry, :: SyntaxEntry
builtin_functions :: [(Location, FunctionEntry)]
builtin_classes :: [(Location, ClassEntry)]
......
Subproject commit f754dbf8c7ff1b56957bb1094ba49f3441e33a84
Subproject commit a5d6bdf87aed4d616dd276f2371572fe52c77bdd
......@@ -222,6 +222,8 @@ function makeExampleList(examples) {
}
function markupDocumentation(doc) {
doc = doc.replace(/\n\n/g, '<br class="parbreak"/>');
doc = doc.replace(/\n\s*-\s*/g, '<br/>- ');
doc = doc.replace(/{{`([^`}]+)`}}/g, '`{{$1}}`');
doc = doc.replace(/`([^`]+)`/g, '<code>$1</code>');
doc = doc.replace(/{{([^}]+)}}/g, function (m,c) {
......@@ -512,8 +514,6 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag
highlightFunction('import ' + basic['modul']));
case 'SyntaxResult':
meta.push(markupDocumentation(extra['syntax_description'].replace(/\n/g, '<br/>')));
var urls = '';
if (extra['syntax_doc_location'].length > 0) {
urls += ' (';
......
......@@ -16,6 +16,10 @@ a {
color: #26c;
}
br.parbreak {
margin-bottom: .5em;
}
#header {
margin-top: 10%;
text-align: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment