Skip to content

Commit 0f57101

Browse files
committed
add new layout for hosted docs
1 parent a641e01 commit 0f57101

File tree

2 files changed

+98
-1
lines changed

2 files changed

+98
-1
lines changed

_layouts/documentation.html

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>{{ page.title }}</title>
6+
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}" />
7+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap" rel="stylesheet">
8+
<script type="text/javascript" src="{{ '/assets/js/main.js' | relative_url }}"></script>
9+
</head>
10+
<body>
11+
<nav class="horizontal center">
12+
<div class="logo">
13+
<a href="https://www.esri.com" target="_blank">
14+
<svg xmlns="http://www.w3.org/2000/svg" width="84" height="30" viewBox="0 0 84 30" class="esri-header-brand-image" style="transform: rotate(360deg);" alt=""><path d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z"></path></svg>
15+
</a>
16+
</div>
17+
<a class="primary-button vertical just-centered" href="https://www.esri.com/en-us/arcgis/products/arcgis-cityengine/overview">ArcGIS CityEngine Page →</a>
18+
</nav>
19+
20+
<div class="subnav darkgrey">
21+
<div class="subnav-wrapper horizontal stretched">
22+
<div class="subnav-left">
23+
<a class="subnav-title-link vertical " href="{{ '/' | relative_url }}"><h2 class="subnav-title">CityEngine Plugins & APIs</h2></a>
24+
<svg class="menu-dropdown" onclick="openMenu()" xmlns="http://www.w3.org/2000/svg" width="49" height="45" viewBox="0 0 49 45">
25+
<g id="Group_1" data-name="Group 1" transform="translate(-169 -225)">
26+
<rect id="Rectangle_1" data-name="Rectangle 1" width="49" height="45" transform="translate(169 225)" fill="rgba(0,0,0,0)"/>
27+
<path id="Polygon_1" data-name="Polygon 1" d="M4.5,0,9,5H0Z" transform="translate(198 250) rotate(180)" fill="#fff"/>
28+
</g>
29+
</svg>
30+
31+
</div>
32+
<div class="horizontal stretched subnav-link-wrapper">
33+
{% assign pluginsinorder = site.plugins | sort:'order-of-appearance' %}
34+
{% for item in pluginsinorder %}
35+
{% if item.draft == false %}
36+
<a class="subnav-link vertical center" href="{{ site.url | absolute_url }}/{{ item.name | downcase }}"><p class="white">{{item.platform}}</p></a>
37+
{% endif %}
38+
{% endfor %}
39+
</div>
40+
</div>
41+
</div>
42+
43+
<div class="doc-content vertical">
44+
{{ page.content | markdownify }}
45+
</div>
46+
47+
<section class="darkgrey">
48+
<div class="content horizontal">
49+
<div class="fourth">
50+
<h3 class="subtitle4 white">ArcGIS Blog</h3>
51+
<p class="grey">Read articles from the CityEngine team.</p>
52+
<a href="https://www.esri.com/arcgis-blog/?rmedium=redirect&rsource=blogs.esri.com/esri/arcgis/tag/cityengine&s=#CityEngine" class="lightblue"><span></span>Go to the blog</a>
53+
</div>
54+
<div class="fourth">
55+
<h3 class="subtitle4 white">What's New</h3>
56+
<p class="grey">Discover recently added capabilities of CityEngine.</p>
57+
<a href="https://doc.arcgis.com/en/cityengine/latest/whats-new/cityengine-whats-new.htm" class="lightblue"><span></span>See what's new</a>
58+
</div>
59+
<div class="fourth">
60+
<h3 class="subtitle4 white">Resources</h3>
61+
<p class="grey">Build expertise and connect with the CityEngine community</p>
62+
<a href="https://www.esri.com/en-us/arcgis/products/arcgis-cityengine/resources" class="lightblue"><span></span>Build expertise</a>
63+
</div>
64+
<div class="fourth">
65+
<h3 class="subtitle4 white">Community</h3>
66+
<p class="grey">Share experiences and learn tricks from the CityEngine community.</p>
67+
<a href="https://community.esri.com/t5/arcgis-cityengine/ct-p/arcgis-cityengine" class="lightblue"><span></span>Join the conversation</a>
68+
</div>
69+
</div>
70+
</section>
71+
72+
<section class="dark footer">
73+
<div class="content horizontal centered spaced">
74+
<p class="white">This Page is maintained by <a href="https://github.com/Esri" target="_blank">Esri</a>.</p>
75+
<p class="white">This page was generated by <a href="https://pages.github.com target="_blank"">GitHub Pages</a>.</p>
76+
</div>
77+
</section>
78+
79+
</body>
80+
</html>

_sass/main.scss

+18-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ h1{
3131
}
3232

3333
h2{
34-
padding: 0 20px;
3534
text-align: left;
3635
}
3736

@@ -386,6 +385,24 @@ nav{
386385
height: 100%;
387386
}
388387

388+
.doc-content {
389+
width: 1024px;
390+
max-width: 96vw;
391+
margin: 0 auto;
392+
padding: 20px 20px;
393+
height: 100%;
394+
}
395+
396+
.doc-content h1 {
397+
font-size: 50px;
398+
font-weight: 250;
399+
}
400+
401+
.doc-content h2 {
402+
font-size: 40px;
403+
font-weight: 250;
404+
}
405+
389406
.gallery{
390407
margin-bottom: 40px;
391408
}

0 commit comments

Comments
 (0)