From 437e14db73d1e92eed47e64f276767e9c070d803 Mon Sep 17 00:00:00 2001 From: mani2106 Date: Tue, 28 Sep 2021 09:37:51 +0000 Subject: [PATCH] upgrade fastpages --- .github/ISSUE_TEMPLATE/upgrade.md | 2 +- Gemfile.lock | 6 +++--- _fastpages_docs/DEVELOPMENT.md | 1 - _fastpages_docs/TROUBLESHOOTING.md | 6 ++++++ _fastpages_docs/UPGRADE.md | 5 ++++- _fastpages_docs/version.txt | 2 +- _includes/google-analytics.html | 11 ++++++++++- _includes/youtube.html | 4 ++-- _sass/minima/fastpages-styles.scss | 24 +++++++++++++++++++++--- 9 files changed, 48 insertions(+), 13 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/upgrade.md b/.github/ISSUE_TEMPLATE/upgrade.md index 6e59c30..f854fcb 100644 --- a/.github/ISSUE_TEMPLATE/upgrade.md +++ b/.github/ISSUE_TEMPLATE/upgrade.md @@ -7,4 +7,4 @@ assignees: '' --- -Opening this issue will trigger GitHub Actions to fetch the lastest version of [fastpages](https://github.com/fastai/fastpages). More information will be provided in forthcoming comments below. +Opening this issue will trigger GitHub Actions to fetch the latest version of [fastpages](https://github.com/fastai/fastpages). More information will be provided in forthcoming comments below. diff --git a/Gemfile.lock b/Gemfile.lock index 21bde50..91c56fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -87,15 +87,15 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) - mini_portile2 (2.6.1) + mini_portile2 (2.5.1) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) minitest (5.14.2) multipart-post (2.1.1) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) + nokogiri (1.11.5) + mini_portile2 (~> 2.5.0) racc (~> 1.4) octicons (11.0.0) nokogiri (>= 1.6.3.1) diff --git a/_fastpages_docs/DEVELOPMENT.md b/_fastpages_docs/DEVELOPMENT.md index 1d08b73..876a534 100644 --- a/_fastpages_docs/DEVELOPMENT.md +++ b/_fastpages_docs/DEVELOPMENT.md @@ -7,7 +7,6 @@ - [Rebuild all the containers](#rebuild-all-the-containers) - [Removing all the containers](#removing-all-the-containers) - [Attaching a shell to a container](#attaching-a-shell-to-a-container) - - [Running a Jupyter Server](#running-a-jupyter-server) You can run your fastpages blog on your local machine, and view any changes you make to your posts, including Jupyter Notebooks and Word documents, live. The live preview requires that you have Docker installed on your machine. [Follow the instructions on this page if you need to install Docker.](https://www.docker.com/products/docker-desktop) diff --git a/_fastpages_docs/TROUBLESHOOTING.md b/_fastpages_docs/TROUBLESHOOTING.md index 80df35e..4626a11 100644 --- a/_fastpages_docs/TROUBLESHOOTING.md +++ b/_fastpages_docs/TROUBLESHOOTING.md @@ -63,4 +63,10 @@ See the [Upgrading guide](https://github.com/fastai/fastpages/blob/master/_fastp 2. Can you customize the styling or theme of fastpages? **A**: See [Customizing Fastpages](https://github.com/fastai/fastpages#customizing-fastpages) +3. Your initial build failed on GH-Pages Status + + `Error messsage: Unable to build page. Please try again later.` `Error: Process completed with exit code 1.` + + If your github username contains capital letters e.g. YourUserName, go to [config file](../_config.yml#L17) line 17 and rename `YourUserName.github.io` to `yourusername.github.io`. After the commit blog should build without error. + See the [FAQ](https://github.com/fastai/fastpages#faq) for frequently asked questions. diff --git a/_fastpages_docs/UPGRADE.md b/_fastpages_docs/UPGRADE.md index 55cdb4b..de84e3c 100644 --- a/_fastpages_docs/UPGRADE.md +++ b/_fastpages_docs/UPGRADE.md @@ -13,6 +13,9 @@ - [Additional Resources](#additional-resources) + +**For fastpages repos that are older than December 1st, 2020 the only way to upgrade is to create a brand-new fastpages repo and copy your blog post files into it.** This is because of breaking changes that were made to GitHub Actions around that time. + There are two ways to upgrade fastpages. One is an automated way that assumes you have made no changes to the HTML of your site. Alternatively, you may [upgrade manually](#manual-upgrade) and determine which changes to accept or reject. For most people we recommend upgrading fastpages automatically. ## Automated Upgrade @@ -42,7 +45,7 @@ There are two ways to upgrade fastpages. One is an automated way that assumes y It is possible that you might receive an error message instead of this command. You can follow the instructions in the comment to troubleshoot the issue. Common reasons for receiving an error are: - You are up to date, therefore no upgrade is possible. You will see an error that there is "nothing to commit". - - You already have a PR from a prevoius upgrade open that you never merged. + - You already have a PR from a previous upgrade open that you never merged. Please [ask on the forums](https://forums.fast.ai/) if you have encounter another problem that is unclear. diff --git a/_fastpages_docs/version.txt b/_fastpages_docs/version.txt index 0ff80a4..7ec3b24 100644 --- a/_fastpages_docs/version.txt +++ b/_fastpages_docs/version.txt @@ -1 +1 @@ -2.1.44 +2.1.48 diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html index 211af80..78fbbc0 100644 --- a/_includes/google-analytics.html +++ b/_includes/google-analytics.html @@ -2,5 +2,14 @@ {% if site.google_analytics %} - + + + + {% endif %} diff --git a/_includes/youtube.html b/_includes/youtube.html index bd8f86b..ea1c7ae 100644 --- a/_includes/youtube.html +++ b/_includes/youtube.html @@ -4,6 +4,6 @@ {% assign url = include.content | remove: "" | split: ">" | last %} {% assign base_url = url | split: "/" | last %} {% endif %} -
- +
+
diff --git a/_sass/minima/fastpages-styles.scss b/_sass/minima/fastpages-styles.scss index 7258c47..621a7e1 100644 --- a/_sass/minima/fastpages-styles.scss +++ b/_sass/minima/fastpages-styles.scss @@ -239,9 +239,9 @@ table { // Handling large charts on mobile devices // @media only screen and (max-width: 1200px) { // /* for mobile phone and tablet devices */ -// .output_wrapper{ -// overflow: scroll; -// } + .output_wrapper{ + overflow: auto; + } // } .svg-icon.orange{ @@ -256,3 +256,21 @@ table { pre code { font-size: 15px !important; } + +// Handle youtube videos, so they dont break on mobile devices +.youtube-iframe-wrapper { + position: relative; + padding-bottom: 56.10%; + height: 0; + overflow: hidden; +} + +.youtube-iframe-wrapper iframe, +.youtube-iframe-wrapper object, +.youtube-iframe-wrapper embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +}