Master -> Develop Backport (#49)

* WEBSITE-1582 - News from contentful

* WEBSITE-1582 - Removed a couple of unneeded checks

* Copied relevant changes from 5x docs.

* Added 2x media images.

* Fixed device-pixel-ratio issues.

* Fixed sync for branch commits.

* Typo fixes in README.md
This commit is contained in:
Glenn Penridge
2019-06-25 08:41:47 +10:00
committed by Alex Shteinikov
parent 3b6899d97f
commit b6a837b255
11 changed files with 134 additions and 59 deletions
+2 -4
View File
@@ -34,9 +34,7 @@ sudo dnf install gcc-c++
## First time set up
Once you have the prerequisites
Then retrieve and init the project:
Once you have the prerequisites, retrieve and init the project:
git clone git@github.com:tinymce/tinymce-docs.git
cd tinymce-docs
@@ -60,7 +58,7 @@ including information on troubleshooting the "first time set up" process.
It's very slow and the minifier is using regex to parse HTML. We may add a different minifier in the future.
## Generating api docs from local files
## Generating API docs from local files
```
npm i -g ephox/moxiedoc#feature/tinymcenext
+1 -1
View File
@@ -1,4 +1,4 @@
<ul>
<ul class="aside-navlist-override">
{% unless include.recursed %}
<li>
+81 -5
View File
@@ -1,4 +1,3 @@
{% include template/notification.html %}
{% include template/menu.html css="body > *" %}
<style>
@@ -18,7 +17,36 @@
}
.modern-navigation-extra {
padding: 0 0 20px 0;
padding: 0 0 26px 0;
}
.modern-navigation-extra > div:first-child {
margin: 0 0 16px;
}
.modern-navigation-extra a {
font-size: 14px;
font-weight: 900;
}
.modern-navigation-extra a svg {
display: inline-block;
width: 14px;
height: 14px;
vertical-align: text-top;
margin: 0.5px 8px 0 0;
}
.modern-navigation-extra a.back-home {
color: #1976D2;
}
.modern-navigation-extra a.back-home:hover path {
fill: rgb(145, 180, 225);
}
.modern-navigation-extra a.back-home:hover {
color: rgb(145, 180, 225);
}
@media screen and (max-width: 1126px) {
@@ -72,6 +100,25 @@
}
}
aside>ul.aside-navlist-override {
margin: 0 !important;
}
@media screen and (max-width: 1126px) {
aside div#optimize-bottom,
aside div#optimize-top {
display: none;
visibility: hidden;
}
}
aside div#optimize-top {
margin: 32px 0 24px 0;
}
aside div#optimize-bottom {
margin: 0 0 348px 0;
}
</style>
<div class="modern-main {{ page.type }} {{ page.class }}">
@@ -91,13 +138,42 @@
<div id="side-nav-controller">Expand Menu</div>
<div class="modern-navigation-extra">
<a href="https://www.tiny.cloud/get-tiny/"
data-marketing="docs-nav-get-tiny">Get TinyMCE</a>
<div>
<a href="/get-tiny/" data-marketing="docs-nav-get-tiny">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="#3F3F3F" fill-rule="evenodd" d="M8 12c-.3 0-.5-.1-.7-.3L1.6 6 3 4.6l4 4V0h2v8.6l4-4L14.4 6l-5.7 5.7c-.2.2-.4.3-.7.3zm-7 2h14v2H1v-2z"/>
</svg>Get TinyMCE
</a>
</div>
<div>
<a class="back-home" href="/" data-marketing="docs-nav-back-home">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="#1976D2" fill-rule="evenodd" d="M6.25 10.5L1 5.25 6.25 0l1.361 1.361-2.917 2.917h5.445C12.86 4.278 15 6.417 15 9.138 15 11.862 12.861 14 10.139 14H2.36v-1.944h7.778c1.653 0 2.917-1.264 2.917-2.917 0-1.653-1.264-2.917-2.917-2.917H4.694L7.611 9.14 6.25 10.5z"/>
</svg>Return to Website
</a>
</div>
</div>
{% assign nav = site.data.nav | array_concat:site.data.nav_api %}
{% include nav.html links=nav preceding_address="/" %}
<div id="optimize-top">
<a href="/features/">
<img
title="Power meets beauty with TinyMCE 5."
src="{{ site.baseurl }}/images/optimize/editor/mini/primary.gif"
srcset="{{ site.baseurl }}/images/optimize/editor/mini/primary.gif 1x, {{ site.baseurl }}/images/optimize/editor/mini/primary@2x.gif 2x"
/>
</a>
</div>
<div id="optimize-bottom">
<a href="/signup/">
<img
title="Create your Tiny Account. Get the most out of TinyMCE with a 30-day free trial of all premium plugins."
src="{{ site.baseurl }}/images/optimize/account/standard/base.gif"
srcset="{{ site.baseurl }}/images/optimize/account/standard/base.gif 1x, {{ site.baseurl }}/images/optimize/account/standard/base@2x.gif 2x"
/>
</a>
</div>
</aside>
<main class="modern-main-container">
+1
View File
@@ -176,6 +176,7 @@
</style>
<header class="modern-header">
{% include template/notification.html %}
<div class="nav-container">
<div class="nav-container__menu-container">
<div class="nav-container__homepage-link-container">
+39 -35
View File
@@ -1,29 +1,29 @@
<div class="tiny-news-docs">
<div>
<a href="https://go.tiny.cloud/blog/"
data-marketing="tiny-news-blog-link"
class="tiny-news-prefix">
TINY BLOG
</a>
&gt;
<span class="tiny-news-text">Important changes to Tiny Cloud pricing</span>
&gt;
<a href="https://go.tiny.cloud/blog/important-changes-to-tiny-cloud-pricing-metric/"
data-marketing="tiny-news-pricing-blog-link" class="tiny-news-link">
Find out more
</a>
<div>
<a href="https://go.tiny.cloud/blog/"
data-marketing="tiny-news-blog-link"
class="tiny-news-prefix">
TINY BLOG
</a>
&gt;
<span class="tiny-news-text">Important changes to Tiny Cloud pricing</span>
&gt;
<a href="https://go.tiny.cloud/blog/important-changes-to-tiny-cloud-pricing-metric/"
data-marketing="tiny-news-pricing-blog-link" class="tiny-news-link">
Find out more
</a>
</div>
<div>
<a class="utility-link" href="/" data-marketing="tiny-docs-news-back-home">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="#FFFFFF" fill-rule="evenodd" d="M6.25 10.5L1 5.25 6.25 0l1.361 1.361-2.917 2.917h5.445C12.86 4.278 15 6.417 15 9.138 15 11.862 12.861 14 10.139 14H2.36v-1.944h7.778c1.653 0 2.917-1.264 2.917-2.917 0-1.653-1.264-2.917-2.917-2.917H4.694L7.611 9.14 6.25 10.5z"/>
</svg>Return to Website
</a>
</div>
</div>
<div>
<a class="utility-link" href="/" data-marketing="tiny-docs-news-back-home">
Return to Tiny.cloud
</a>
</div>
</div>
<style type="text/css">
.tiny-news-docs {
display: flex;
align-content: flex-start;
@@ -31,8 +31,8 @@
border-bottom: 1px solid #D2D2D2;
padding: 0.5rem 2rem 0.5rem;
text-align: center;
color: #4A4A4A;
background-color: white;
color: white;
background-color: #1976D2;
box-sizing: border-box;
position: relative;
z-index: 1000;
@@ -41,27 +41,33 @@
}
.tiny-news-docs a {
color: rgb(25, 118, 210);
font-weight: 600;
color: white;
font-weight: 900;
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
transition: border-bottom 0.25s ease 0s;
}
.tiny-news-docs a:hover {
border-bottom: 1px solid rgb(255, 255, 255);
}
.tiny-news-docs a svg {
display: inline-block;
width: 12px;
height: 12px;
vertical-align: text-top;
margin: 0 4px 0 0;
}
.tiny-news-docs a:hover {
border-bottom: 1px solid rgb(255, 255, 255);
}
.tiny-news-docs .utility-link {
margin: 0 1rem 0 0;
height: 1rem;
line-height: 1rem;
font-weight: 900;
color: #4A4A4A;
color: white;
}
.tiny-news-docs .utility-link:hover{
color: #1976D2;
color: white;
}
.tiny-news-docs .utility-link:last-child {
@@ -75,6 +81,4 @@
position: absolute;
}
}
</style>
+10 -9
View File
@@ -1,14 +1,15 @@
#!/bin/bash
mkdir -p ./_essentials/css
mkdir -p ./_essentials/scripts
mkdir -p ./_essentials/fonts
mkdir -p ./_site/css
mkdir -p ./_site/scripts
mkdir -p ./_site/fonts
printf "User-agent: * \nDisallow: /\n" > ./_essentials/robots.txt
curl -o ./_essentials/css/common.min.css https://staging.tiny.cloud/css/common.min.css -L
curl -o ./_essentials/css/docs.min.css https://staging.tiny.cloud/css/docs.min.css -L
curl -o ./_essentials/scripts/docs.min.js https://staging.tiny.cloud/scripts/docs.min.js -L
curl -o ./_essentials/scripts/common.min.js https://staging.tiny.cloud/scripts/common.min.js -L
curl -o ./_essentials/fonts/aileron-ultra-light.woff https://staging.tiny.cloud/fonts/aileron-ultra-light.woff -L
curl -o ./_essentials/fonts/aileron-ultra-light.ttf https://staging.tiny.cloud/fonts/aileron-ultra-light.ttf -L
curl -o ./_site/css/common.min.css https://staging.tiny.cloud/css/common.min.css -L
curl -o ./_site/css/docs.min.css https://staging.tiny.cloud/css/docs.min.css -L
curl -o ./_site/scripts/docs.min.js https://staging.tiny.cloud/scripts/docs.min.js -L
curl -o ./_site/scripts/common.min.js https://staging.tiny.cloud/scripts/common.min.js -L
curl -o ./_site/fonts/aileron-ultra-light.woff https://staging.tiny.cloud/fonts/aileron-ultra-light.woff -L
curl -o ./_site/fonts/aileron-ultra-light.ttf https://staging.tiny.cloud/fonts/aileron-ultra-light.ttf -L
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

-5
View File
@@ -47,11 +47,6 @@ deploy_branch:
- script:
name: get bucket name
code: export S3_BUCKET=$(node -e 'console.log(`s3://docs-v4-${process.env.WERCKER_GIT_BRANCH.replace(/[/\s]/g, "-").replace(/[^0-9a-zA-Z-]/g, "").replace(/-$/g, "").toLowerCase()}.staging.tiny.cloud`)')
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY
bucket-url: $S3_BUCKET
source-dir: _essentials
- s3sync:
key-id: $AWS_ACCESS_KEY_ID
key-secret: $AWS_SECRET_ACCESS_KEY