From 9a108026e6e58d08d3e8c58002825300e9c04139 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 18 Mar 2018 16:54:48 +0100 Subject: [PATCH] Add a netlify.toml file --- requirements.txt => blog/requirements.txt | 0 blog/static/_redirects | 13 ----- netlify.toml | 62 +++++++++++++++++++++++ 3 files changed, 62 insertions(+), 13 deletions(-) rename requirements.txt => blog/requirements.txt (100%) delete mode 100644 blog/static/_redirects create mode 100644 netlify.toml diff --git a/requirements.txt b/blog/requirements.txt similarity index 100% rename from requirements.txt rename to blog/requirements.txt diff --git a/blog/static/_redirects b/blog/static/_redirects deleted file mode 100644 index 5bdc79a8..00000000 --- a/blog/static/_redirects +++ /dev/null @@ -1,13 +0,0 @@ -# Redirects from what the browser requests to what we serve -/2015/08/18/multiboot-kernel/ /multiboot-kernel/ -/rust-os/multiboot-kernel.html /multiboot-kernel/ -/2015/08/25/entering-longmode/ /entering-longmode/ -/rust-os/entering-longmode.html /entering-longmode/ -/2015/09/02/setup-rust/ /set-up-rust/ -/setup-rust.html /set-up-rust/ -/rust-os/setup-rust.html /set-up-rust/ -/2015/10/23/printing-to-screen/ /printing-to-screen/ -/rust-os/printing-to-screen.html /printing-to-screen/ -/atom.xml /rss.xml -/modifying-page-tables.html /page-tables/ -/handling-exceptions-with-naked-fns.html /extra/naked-exceptions/ diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..4162b367 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,62 @@ +[build] + base = "blog" + publish = "blog/public" + command = "python before_build.py && gutenberg build" + +[build.environment] + GUTENBERG_VERSION = "0.3.0" + +[context.deploy-preview] + command = "python before_build.py && gutenberg build --base-url $DEPLOY_PRIME_URL" + +[context.branch-deploy] + command = "python before_build.py && gutenberg build --base-url $DEPLOY_PRIME_URL" + + +[[redirects]] +from = "/2015/08/18/multiboot-kernel/" +to = "/multiboot-kernel/" + +[[redirects]] +from = "/rust-os/multiboot-kernel.html" +to = "/multiboot-kernel/" + +[[redirects]] +from = "/2015/08/25/entering-longmode/" +to = "/entering-longmode/" + +[[redirects]] +from = "/rust-os/entering-longmode.html" +to = "/entering-longmode/" + +[[redirects]] +from = "/2015/09/02/setup-rust/" +to = "/set-up-rust/" + +[[redirects]] +from = "/setup-rust.html" +to = "/set-up-rust/" + +[[redirects]] +from = "/rust-os/setup-rust.html" +to = "/set-up-rust/" + +[[redirects]] +from = "/2015/10/23/printing-to-screen/" +to = "/printing-to-screen/" + +[[redirects]] +from = "/rust-os/printing-to-screen.html" +to = "/printing-to-screen/" + +[[redirects]] +from = "/atom.xml" +to = "/rss.xml" + +[[redirects]] +from = "/modifying-page-tables.html" +to = "/page-tables/" + +[[redirects]] +from = "/handling-exceptions-with-naked-fns.html" +to = "/extra/naked-exceptions/"