mirror of https://github.com/istio/istio.io.git
Delete some old stuff we don't need anymore.
* Delete some old stuff we don't need anymore. * Fix problem preventing proper section indices in the "About" section of the site.
This commit is contained in:
parent
7cf2e07e12
commit
3285d62b97
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"projects": {
|
||||
"default": "istio-io",
|
||||
"v01": "istiodocs-v01"
|
||||
}
|
||||
}
|
|
@ -3,3 +3,5 @@
|
|||
So, you want to hack on the Istio web site? Yay! Please refer to Istio's overall
|
||||
[contribution guidelines](https://github.com/istio/community/blob/master/CONTRIBUTING.md)
|
||||
to find out how you can help.
|
||||
|
||||
For specifics on hacking on our site, check this [info](https://istio.io/about/contribute/)
|
||||
|
|
|
@ -10,4 +10,4 @@ toc: false
|
|||
redirect_from: /docs/welcome/contribute/index.html
|
||||
---
|
||||
|
||||
{% include section-index.html docs=site.docs %}
|
||||
{% include section-index.html docs=site.about %}
|
||||
|
|
|
@ -14,7 +14,7 @@ redirect_from:
|
|||
toc: false
|
||||
---
|
||||
|
||||
{% include section-index.html docs=site.docs %}
|
||||
{% include section-index.html docs=site.about %}
|
||||
|
||||
|
||||
- The [latest](https://github.com/istio/istio/releases) Istio monthly release is {{site.data.istio.version}}. It is downloaded when the following is used(*):
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"hosting": {
|
||||
"public": "_site"
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This is deprecated - moved to
|
||||
# https://github.com/istio/admin-sites/blob/master/archive.istio.io/build.sh
|
||||
|
||||
#example: PROJECT_ID=istiodocs-v01 RELEASE=0.1 FIREBASE_TOKEN=aabbccdd ./scripts/build.sh
|
||||
|
||||
# This script builds and pushes the current branch
|
||||
# to a firebase project
|
||||
# The ci token produced by 'firebase login:ci'
|
||||
# MUST have access to the given projects
|
||||
|
||||
PROJECT_ID=${PROJECT_ID:?"PROJECT_ID required"}
|
||||
FIREBASE_TOKEN=${FIREBASE_TOKEN:?"FIREBASE_TOKEN required"}
|
||||
RELEASE=${RELEASE:?"RELEASE is required"}
|
||||
|
||||
if [[ -z ${INDOCKER} ]];then
|
||||
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll \
|
||||
-e PROJECT_ID=$PROJECT_ID \
|
||||
-e FIREBASE_TOKEN=$FIREBASE_TOKEN \
|
||||
-e INDOCKER=true \
|
||||
-e RELEASE=${RELEASE} \
|
||||
jekyll/jekyll scripts/build.sh
|
||||
else
|
||||
set -e
|
||||
# The directory now is /srv/jekyll inside the container
|
||||
# TODO bake a new docker image with correct versions from bundler
|
||||
PUBLIC=_static_site
|
||||
rm -Rf ${PUBLIC} ; mkdir ${PUBLIC}
|
||||
echo "baseurl: /v-${RELEASE}" > config_override.yml
|
||||
jekyll build --config _config.yml,config_override.yml
|
||||
mv _site "${PUBLIC}/v-${RELEASE}"
|
||||
npm install -g firebase-tools
|
||||
firebase use $PROJECT_ID --non-interactive --token $FIREBASE_TOKEN
|
||||
firebase deploy --public ${PUBLIC} --non-interactive --token $FIREBASE_TOKEN
|
||||
fi
|
Loading…
Reference in New Issue