+
+{%- elif cell.metadata.hide_output -%}
{%- else -%}
{{ super() }}
{%- endif -%}
diff --git a/_action_files/nb2post.py b/_action_files/nb2post.py
index 038064c..6edfdae 100755
--- a/_action_files/nb2post.py
+++ b/_action_files/nb2post.py
@@ -2,7 +2,7 @@
from datetime import datetime
import re, os, logging
from nbdev import export2html
-from nbdev.export2html import Config, Path, _re_digits, _to_html, _re_block_notes
+from nbdev.export2html import Config, Path, _to_html, _re_block_notes
from fast_template import rename_for_jekyll
warnings = set()
@@ -19,4 +19,4 @@ def _nb2htmlfname(nb_path, dest=None):
## apply monkey patches
export2html._nb2htmlfname = _nb2htmlfname
-export2html.notebook2html(fname='_notebooks/*.ipynb', dest='_posts/', template_file='/fastpages/fastpages.tpl')
+export2html.notebook2html(fname='_notebooks/*.ipynb', dest='_posts/', template_file='/fastpages/fastpages.tpl', execute=False)
diff --git a/_action_files/word2post.sh b/_action_files/word2post.sh
index 47b81f7..54260b7 100755
--- a/_action_files/word2post.sh
+++ b/_action_files/word2post.sh
@@ -8,21 +8,21 @@ fi
# Loops through directory of *.docx files and converts to markdown
# markdown files are saved in _posts, media assets are saved in assets/img//media
-for FILENAME in ${GITHUB_WORKSPACE}/_word/*.docx; do
+for FILENAME in "${GITHUB_WORKSPACE}"/_word/*.docx; do
[ -e "$FILENAME" ] || continue # skip when glob doesn't match
NAME=${FILENAME##*/} # Get filename without the directory
- NEW_NAME=`python3 "/fastpages/word2post.py" "${FILENAME}"` # clean filename to be Jekyll compliant for posts
+ NEW_NAME=$(python3 "/fastpages/word2post.py" "${FILENAME}") # clean filename to be Jekyll compliant for posts
BASE_NEW_NAME=${NEW_NAME%.md} # Strip the file extension
if [ -z "$NEW_NAME" ]; then
echo "Unable To Rename: ${FILENAME} to a Jekyll complaint filename for blog posts"
exit 1
fi
-
+
echo "Converting: ${NAME} ---to--- ${NEW_NAME}"
- cd ${GITHUB_WORKSPACE}
+ cd ${GITHUB_WORKSPACE} || { echo "Failed to change to Github workspace directory"; exit 1; }
pandoc --from docx --to gfm --output "${GITHUB_WORKSPACE}/_posts/${NEW_NAME}" --columns 9999 \
- --extract-media="assets/img/${BASE_NEW_NAME}" --standalone "${FILENAME}"
+ --extract-media="assets/img/${BASE_NEW_NAME}" --standalone "${FILENAME}"
# Inject correction to image links in markdown
sed -i.bak 's/!\[\](assets/!\[\]({{ site.url }}{{ site.baseurl }}\/assets/g' "_posts/${NEW_NAME}"
diff --git a/_fastpages_docs/DEVELOPMENT.md b/_fastpages_docs/DEVELOPMENT.md
index af7065d..1d08b73 100644
--- a/_fastpages_docs/DEVELOPMENT.md
+++ b/_fastpages_docs/DEVELOPMENT.md
@@ -100,9 +100,3 @@ make bash-nb
_Note: you can use `docker-compose run` instead of `make bash-nb` or `make bash-jekyll` to start a service and then attach to it.
Or you can run all your services in the background, `make server-detached`, and then use `make bash-nb` or `make bash-jekyll` as in the examples above._
-## Running A Jupyter Server
-
-The fastpages development environment does not provide a Jupyter server for you. This is intentional so that you are free to run Jupyter Notebooks or Jupyter Lab in a manner that is familiar to you, and manage dependencies (requirements.txt, conda, etc) in the way you wish. Some tips that may make your life easier:
-
-- Provide instructions in your README and your blog posts on how to install the dependencies required to run your notebooks. This will make it easier for your audience to reproduce your notebooks.
-- Do not edit the Dockerfile in `/_action_files`, as that may interfere with the blogging environment. Furthermore, any changes you make to these files may get lost in future upgrades, if [upgrading automatically](UGPRADE.md). Instead, if you wish to manage your Jupyter server with Docker, we recommend that you maintain a seperate Dockerfile at the root of your repository.
diff --git a/_fastpages_docs/TROUBLESHOOTING.md b/_fastpages_docs/TROUBLESHOOTING.md
index 43f0961..80df35e 100644
--- a/_fastpages_docs/TROUBLESHOOTING.md
+++ b/_fastpages_docs/TROUBLESHOOTING.md
@@ -29,7 +29,7 @@ See the [Upgrading guide](https://github.com/fastai/fastpages/blob/master/_fastp
- [ ] In your GitHub repository, you will have a tab called **Actions**. To find build errors, click on the `Event` dropdown list and select `push`. Browse through tthe logs to see if you can find an error. If you receive an error, read the error message and try to debug.
-## Step 5: Once you have performed all the above steps, post your issue in the fastai formus or a GitHub Issue.
+## Step 5: Once you have performed all the above steps, post your issue in the fastai forums or a GitHub Issue.
- [ ] Use the [nbdev & blogging category](https://forums.fast.ai/c/fastai-users/nbdev/48) to specify your problem if posting on the fastpages forums.
- [ ] If you cannot find a similar issue create a new thread instead of commenting on an unrelated one.
diff --git a/_fastpages_docs/_setup_pr_template.md b/_fastpages_docs/_setup_pr_template.md
index 3cd88d4..3e9c522 100644
--- a/_fastpages_docs/_setup_pr_template.md
+++ b/_fastpages_docs/_setup_pr_template.md
@@ -4,7 +4,7 @@ Hello :wave: @mani2106! Thank you for using fastpages!
1. Create an ssh key-pair. Open this utility. Select: `RSA` and `4096` and leave `Passphrase` blank. Click the blue button `Generate-SSH-Keys`.
-2. Navigate to this link and click `Add a new secret`. Copy and paste the **Private Key** into the `Value` field. This includes the "---BEGIN RSA PRIVATE KEY---" and "--END RSA PRIVATE KEY---" portions. In the `Name` field, name the secret `SSH_DEPLOY_KEY`.
+2. Navigate to this link and click `New repository secret`. Copy and paste the **Private Key** into the `Value` field. This includes the "---BEGIN RSA PRIVATE KEY---" and "--END RSA PRIVATE KEY---" portions. **In the `Name` field, name the secret `SSH_DEPLOY_KEY`.**
3. Navigate to this link and click the `Add deploy key` button. Paste your **Public Key** from step 1 into the `Key` box. In the `Title`, name the key anything you want, for example `fastpages-key`. Finally, **make sure you click the checkbox next to `Allow write access`** (pictured below), and click `Add key` to save the key.
@@ -14,7 +14,7 @@ Hello :wave: @mani2106! Thank you for using fastpages!
### What to Expect After Merging This PR
- GitHub Actions will build your site, which will take 2-3 minutes to complete. **This will happen anytime you push changes to the master branch of your repository.** You can monitor the logs of this if you like on the [Actions tab of your repo](https://github.com/mani2106/Blog-Posts/actions).
-- Your GH-Pages Status badge on your README will eventually appear and be green, indicating your first sucessfull build.
+- Your GH-Pages Status badge on your README will eventually appear and be green, indicating your first successful build.
- You can monitor the status of your site in the GitHub Pages section of your [repository settings](https://github.com/mani2106/Blog-Posts/settings).
If you are not using a custom domain, your website will appear at:
diff --git a/_fastpages_docs/annotate.png b/_fastpages_docs/annotate.png
new file mode 100644
index 0000000..56fd6a4
Binary files /dev/null and b/_fastpages_docs/annotate.png differ
diff --git a/_fastpages_docs/enable_actions.png b/_fastpages_docs/enable_actions.png
new file mode 100644
index 0000000..b01aea5
Binary files /dev/null and b/_fastpages_docs/enable_actions.png differ
diff --git a/_fastpages_docs/fastapges-setup.gif b/_fastpages_docs/fastapges-setup.gif
new file mode 100644
index 0000000..2c392c5
Binary files /dev/null and b/_fastpages_docs/fastapges-setup.gif differ
diff --git a/_fastpages_docs/version.txt b/_fastpages_docs/version.txt
index ac12784..0ff80a4 100644
--- a/_fastpages_docs/version.txt
+++ b/_fastpages_docs/version.txt
@@ -1 +1 @@
-2.1.30
+2.1.44
diff --git a/_includes/custom-head.html b/_includes/custom-head.html
index 25f4c4e..1842575 100644
--- a/_includes/custom-head.html
+++ b/_includes/custom-head.html
@@ -7,19 +7,18 @@
{%- include favicons.html -%}
-{% seo %}
-
-
-{%- feed_meta -%}
-{%- if jekyll.environment == 'production' and site.google_analytics -%}
- {%- include google-analytics.html -%}
+
+
+
+{%- if site.annotations -%}
+
{%- endif -%}
{% if site.use_math %}
-
-
-
-
+
+
+
+