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

View File

@ -1,5 +1,5 @@
# Site settings # Site settings
title: MPS Code Rules title: MPS CodeRules
email: fedor.isakov@jetbrains.com email: fedor.isakov@jetbrains.com
description: >- # this means to ignore newlines until "baseurl:" description: >- # this means to ignore newlines until "baseurl:"
Code Rules is a language framework and runtime for running logical Code Rules is a language framework and runtime for running logical
@ -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 url: "https://jetbrains.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jetbrains_mps twitter_username: jetbrains_mps
github_username: jetbrains github_username: jetbrains
time: 2018-09-05 time: 2021-05-21
revision: 0.5.0 revision: 0.9.0
copyright: JetBrains s.r.o. copyright: JetBrains
copyright_url: "https://jetbrains.com" copyright_url: "https://jetbrains.com"
homepage: "https://jetbrains.com/mps" homepage: "https://jetbrains.com/mps"
homepage_title: "JetBrains MPS" homepage_title: "JetBrains MPS"

View File

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

View File

@ -9,7 +9,9 @@
</div> </div>
<div class="mdl-mini-footer__right-section"> <div class="mdl-mini-footer__right-section">
<ul class="mdl-mini-footer__link-list"> <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> </ul>
</div> </div>
</footer> </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"> <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"> <span class="mdl-layout-title">
{% if page.title %} {% if page.title %}
<h1 id="page-title" class="mdl-typography--title"> <h1 id="page-title" class="mdl-typography--title">

View File

@ -9,11 +9,16 @@
{% include head.html %} {% include head.html %}
</head> </head>
<body> <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 %} {% include header.html %}
<div class="mdl-layout__drawer"> <div class="mdl-layout__drawer">
<span class="mdl-layout-title"> <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> </span>
<nav class="mdl-navigation"> <nav class="mdl-navigation">
{% include menu.html %} {% include menu.html %}

View File

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

View File

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