You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/02/19 19:18:16 UTC
[GitHub] [flink-statefun] sjwiesman opened a new pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
sjwiesman opened a new pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200
This PR migrates statefun documentation to Hugo from Jekyll. No rush on the review, just opening it since I had time for the migration today.
While we will be doing a major revamp of the content of the documentation prior to 3.0, this PR is solely an infrastructure change. We can make follow up updates to the style and substance going forward.
adc0313 Contains the actual migration. I would not look at this diff. Instead, I encourage you to build the docs locally and click around. There are instructions in `docs/README.md`. Additionally, all the layout and hugo specific files were copied directly from apache/flink and have already been reviewed.
9649f99 Contains some changes to build and release scripts. Please do review this diff :)
**Build Bot**
After merging this change we will need to update the build bot. Unfortunately, I do not have access as it is PMC only. I have fully scripted the build bot steps. A PMC member simply needs to update it to run `./tools/ci/docs.sh` to build and deploy.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] sjwiesman commented on pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
sjwiesman commented on pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200#issuecomment-785136651
rebased on master
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] tzulitai closed pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
tzulitai closed pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] tzulitai commented on pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
tzulitai commented on pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200#issuecomment-788531510
Looks good to merge! Will merge this and update the buildbot now.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] sjwiesman commented on pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
sjwiesman commented on pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200#issuecomment-787995233
@tzulitai thanks for the review. I've update the build bot script. I will leave this one for your to merge since it requires the build bot update. Please let me know if you have any questions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] tzulitai commented on a change in pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
tzulitai commented on a change in pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200#discussion_r584454728
##########
File path: tools/ci/docs.sh
##########
@@ -17,29 +17,22 @@
# limitations under the License.
################################################################################
-# fail immediately
-set -o errexit
-set -o nounset
+HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.tar.gz
+HUGO_ARTIFACT=hugo_extended_0.80.0_Linux-64bit.tar.gz
-BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
-PROJECT_ROOT="${BASE_DIR}/../../"
-
-# Sanity check to ensure that resolved paths are valid
-if [ ! -f ${PROJECT_ROOT}/docs/build_docs.sh ]; then
- echo "Project root path ${PROJECT_ROOT} is not valid; script may be in the wrong directory."
- exit 1
+if ! curl --fail -OL $HUGO_REPO ; then
+ echo "Failed to download Hugo binary"
+ exit 1
fi
-CACHE_DIR=$HOME/gem_cache ${PROJECT_ROOT}/docs/build_docs.sh -p &
+tar -zxvf $HUGO_ARTIFACT
Review comment:
I think it would be safer to extract the hugo artifact in a separate directory, just in case it somehow pollutes the docs dir. I don't think that's the case right now, but would be good to do.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink-statefun] sjwiesman commented on a change in pull request #200: [FLINK-21422][docs] Migrate docs to Hugo
Posted by GitBox <gi...@apache.org>.
sjwiesman commented on a change in pull request #200:
URL: https://github.com/apache/flink-statefun/pull/200#discussion_r584758626
##########
File path: tools/ci/docs.sh
##########
@@ -17,29 +17,22 @@
# limitations under the License.
################################################################################
-# fail immediately
-set -o errexit
-set -o nounset
+HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_0.80.0_Linux-64bit.tar.gz
+HUGO_ARTIFACT=hugo_extended_0.80.0_Linux-64bit.tar.gz
-BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
-PROJECT_ROOT="${BASE_DIR}/../../"
-
-# Sanity check to ensure that resolved paths are valid
-if [ ! -f ${PROJECT_ROOT}/docs/build_docs.sh ]; then
- echo "Project root path ${PROJECT_ROOT} is not valid; script may be in the wrong directory."
- exit 1
+if ! curl --fail -OL $HUGO_REPO ; then
+ echo "Failed to download Hugo binary"
+ exit 1
fi
-CACHE_DIR=$HOME/gem_cache ${PROJECT_ROOT}/docs/build_docs.sh -p &
+tar -zxvf $HUGO_ARTIFACT
Review comment:
I've updated it to only extract the specific binary file we need.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org