feat(cross): #1959 remove en subdirectory

- Host website under web/ directory without any language
  indicator.
parent a35cfc20
......@@ -189,20 +189,10 @@ deploy:
else
echo "There are no artifacts";
fi
- pybabel compile --directory theme/2014/translations/ --domain messages
- for FILE in $(find content/blog-en content/pages-en -iname '*.adoc'); do
sed -i 's#^include::#include::'"${CI_PROJECT_DIR/\/web/}"'#g' ${FILE};
done
- pelican --fatal errors --fatal warnings content/
- rm -rf output/web/de
- mv robots.txt output/
- mv output/web/en/blog-en/* output/web/en/blog
- cp -r output/web/en/pages-en/* output/web/en/
- mv output/web/en/redirect/index.html output/web/
- rm -rf output/web/en/pages-en
- rmdir output/web/en/redirect/
- ./xmlcombine.sh
- ./draft.sh
- ./build-site.sh
- export AWS_ACCESS_KEY_ID="$(vault read -field=aws_s3_access_key secret/web)"
- export AWS_SECRET_ACCESS_KEY="$(vault read -field=aws_s3_secret_key secret/web)"
- export S3_BUCKET_NAME="$(vault read -field=aws_s3_bucket secret/web)"
......
#!/usr/bin/env bash
set -e
# This script solves the issue of the main domain not being included in the
# sitemaps generated by Pelican.
pybabel compile --directory theme/2014/translations --domain messages
pelican --fatal errors --fatal warnings content/
# Main file that has the main domain of the site predefined
cp sitemap.xml output/sitemap.xml
# Append all the URLs of the english subsite to the main file without the XML headers and the closing tag
tail -n +6 output/web/en/sitemap.xml >> output/sitemap.xml
rm -rf output/web/de
mv output/web/pages/* output/web/
rmdir output/web/pages
cp sitemap.xml output/sitemap.xml
tail -n +6 output/web/sitemap.xml >> output/sitemap.xml
sed -i '/<url>/{:a;N;/<\/url>/!ba};/blog\/\(authors\|tags\|categories\)/d' output/sitemap.xml
sed -i '/^$/d' output/sitemap.xml
rm output/web/sitemap.xml
# With the main file complete, remove the incomplete files
rm output/web/en/sitemap.xml
cp robots.txt output/robots.txt
......@@ -82,12 +82,6 @@ RUN apt-get update -qq && \
cat ../plugin_list.txt >> .git/info/sparse-checkout && \
git pull origin master && \
git reset --hard 3924d5b && \
# Download the Pelican-Redirect plugin and initialize it so it is recognized as a Python module
git clone --depth=1 https://github.com/slinkp/pelican-redirect.git && \
cd pelican-redirect && \
git reset --hard f00004c && \
echo "from .pelican_redirect import *" > __init__.py && \
cd /app && \
# Download the PlantUML filter for Asciidoc and install it, along with Java to execute it
......
......@@ -209,7 +209,7 @@ en link:https://www.typescriptlang.org/index.html[+TypeScript+]
con pensamiento funcional.
Si este no es tu caso, te recomendamos que leas
[button]#link:/web/es/blog/por-que-somos-funcionales[Por qué somos funcionales?]#
y [button]#link:/web/en/blog/functional-fashion-in-javascript[Functional Fashion in JavaScript]#
y [button]#link:/web/blog/functional-fashion-in-javascript[Functional Fashion in JavaScript]#
Solo falta responder ¿Por qué modernidad?
Bueno, los expertos en
......
......@@ -71,7 +71,7 @@ a (preferably small) number of steps.
[source,gherkin]
----
include::/web/content/blog-en/app-pickle/coffee-example.feature[]
include::/web/content/blog/app-pickle/coffee-example.feature[]
----
As seen above,
......@@ -261,7 +261,7 @@ in +Gherkin+:
[source,gherkin]
----
include::/web/content/blog-en/app-pickle/command-injection.feature[]
include::/web/content/blog/app-pickle/command-injection.feature[]
----
We wrap long lines
......
......@@ -292,7 +292,7 @@ when merged with tools like mypy,
which turns very tedious processes into a matter of seconds.
If you still do not know much about functional programming
or functional programming in Python, we invite you to read
[button]#link:/web/en/blog/why-we-go-functional/[Why we go functional?]#
[button]#link:/web/blog/why-we-go-functional/[Why we go functional?]#
and
[button]#link:/web/en/blog/road-to-functional-python/[Road to functional Python]#.
[button]#link:/web/blog/road-to-functional-python/[Road to functional Python]#.
You already have the knowledge, so will you check types?
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.