Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion _fastpages_docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions _fastpages_docs/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
5 changes: 4 additions & 1 deletion _fastpages_docs/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
- [Additional Resources](#additional-resources)
<!-- /TOC -->


**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
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion _fastpages_docs/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.44
2.1.48
11 changes: 10 additions & 1 deletion _includes/google-analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@

{% if site.google_analytics %}

<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','{{site.google_analytics}}','auto');ga('require','displayfeatures');ga('send','pageview');</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.google_analytics}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{site.google_analytics}}');
</script>

{% endif %}
4 changes: 2 additions & 2 deletions _includes/youtube.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
{% assign url = include.content | remove: "</a>" | split: ">" | last %}
{% assign base_url = url | split: "/" | last %}
{% endif %}
<center>
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{base_url}}" frameborder="0" allowfullscreen></iframe>
<center class="youtube-iframe-wrapper">
<iframe width="730" height="315" src="https://www.youtube.com/embed/{{base_url}}" frameborder="0" allowfullscreen></iframe>
</center>
24 changes: 21 additions & 3 deletions _sass/minima/fastpages-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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%;
}