Update docs site: fixed menu, add redirect to content, fix design

This commit is contained in:
Fedor Isakov 2021-05-21 11:39:32 +02:00
parent bcb4ea2499
commit 650ebde73e
10 changed files with 51 additions and 39 deletions

View File

@ -20,10 +20,6 @@
min-height: calc(100vh - 120px);
}
.mdl-layout__header-row {
/* color: #fff; */
}
.mdl-layout__header-row > .mdl-navigation > .mdl-navigation__link {
color: #fff;
font-size: 20px;
@ -265,6 +261,11 @@ td{
/* margin-bottom: 32px; */
}
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link {
padding-top: 8px;
padding-bottom: 8px;
}
.parent {
font-weight: bold;
}

View File

@ -8,9 +8,9 @@ baseurl: "/mps-coderules" # the subpath of your site, e.g. /blog
url: "https://jetbrains.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jetbrains_mps
github_username: jetbrains
time: 2018-09-05
revision: 0.5.0
copyright: JetBrains s.r.o.
time: 2021-05-21
revision: 0.9.0
copyright: JetBrains
copyright_url: "https://jetbrains.com"
homepage: "https://jetbrains.com/mps"
homepage_title: "JetBrains MPS"

View File

@ -4,7 +4,7 @@
id: examples
- title: "All on Single Page"
url: "content/allpages.html"
url: "allpages"
weight: 890
tab: true
@ -14,12 +14,12 @@
id: links
- title: "GitHub Project"
url: "https://github.com/fisakov/constraints-typechecking"
url: "https://github.com/jetbrains/mps-coderules"
parent: links
tab: true
- title: "Latest Release"
url: "https://github.com/fisakov/constraints-typechecking/releases"
- title: "Latest Builds"
url: "https://teamcity.jetbrains.com/viewType.html?buildTypeId=MPS_20211_Distribution_MpsCodeRules"
parent: links
tab: true

View File

@ -9,7 +9,9 @@
</div>
<div class="mdl-mini-footer__right-section">
<ul class="mdl-mini-footer__link-list">
{% if site.homepage %}<li><a href="{{ site.homepage}}">{% if site.homepage_title %}{{ site.homepage_title}}{% else %}Home{% endif %}</a></li>{% endif %}
<li class="metadata">Revision: {{ site.revision }}</li>
<li class="metadata">Date: {{ site.time | date: "%-d %b, %Y" }}</li>
<!-- {% if site.homepage %}<li><a href="{{ site.homepage}}">{% if site.homepage_title %}{{ site.homepage_title}}{% else %}Home{% endif %}</a></li>{% endif %}-->
</ul>
</div>
</footer>

View File

@ -1,10 +1,5 @@
<header class="mdl-layout__header">
<header class="mdl-layout__header mdl-layout__header--transparent">
<div class="mdl-layout__header-row">
<a class="mdl-layout-icon" href="{{ '/' | absolute_url }}">
{% if site.logo %}
<img src="{{ site.logo | absolute_url }}" alt="" id="site-logo"/>
{% endif %}
</a>
<span class="mdl-layout-title">
{% if page.title %}
<h1 id="page-title" class="mdl-typography--title">

View File

@ -9,11 +9,16 @@
{% include head.html %}
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-drawer">
{% include header.html %}
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">
<a id="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a>
<a class="mdl-layout-icon" href="{{ '/' | absolute_url }}">
{% if site.logo %}
<img src="{{ site.logo | absolute_url }}" alt="" id="site-logo"/>
{% endif %}
</a>
<!-- <a id="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a>-->
</span>
<nav class="mdl-navigation">
{% include menu.html %}

View File

@ -49,3 +49,4 @@ layout: default
{% endif %}
{% endfor %}
</div>

View File

@ -9,14 +9,15 @@
<div class="mdl-cell mdl-cell--10-col">
<div class="page-content">
<div class="content">
<span class="mdl-layout-title">
<h1 id="title">
{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}
</h1>
</span>
{{ content }}
<p>Revision: {{ site.revision }}</p>
<p>Date: {{ site.time | date: "%-d %b, %Y" }}</p>
<!-- <span class="mdl-layout-title">-->
<!-- <h1 id="title">-->
<!-- {% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}-->
<!-- </h1>-->
<!-- </span>-->
<!-- {{ content }}-->
<p style="text-align: right">{{site.url}}{{site.baseurl}}</p>
<p style="text-align: right">Revision: {{ site.revision }}</p>
<p style="text-align: right">Date: {{ site.time | date: "%-d %b, %Y" }}</p>
{% assign sorted_pages = site.pages | sort: 'weight' %}
{% for p in sorted_pages %}
{% if p.menu != false and p.weight != nil %}

View File

@ -0,0 +1,15 @@
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="refresh" content="1;url={{ page.redirect }}"/>
<link rel="canonical" href="{{ page.redirect }}"/>
<script type="text/javascript">
window.location.href = "{{ page.redirect }}"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow <a href='{{ page.redirect }}'>this link</a>.
</body>
</html>

View File

@ -1,12 +1,4 @@
---
title: About
menu: false
weight: 1
layout: welcome
redirect: content
layout: redirect
---
Type inference and type checking is a problematic area for language authors — users of JetBrains MPS, because of inherent intricacies of the problem and sometimes inadequate support from the framework.
*Code Rules* is a new technology that brings logic programming in the form of constraints processing as a vehicle for implementing type inference.
Thanks to its flexibility and independence from any specifics of type checking, this technology can be applied in other areas of model analysis where logical inference can be useful.