Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing documentation workflow (#2594)
* Polish documentation workflow * Use GitHub Actions output * Remove unnecessary download-artifact step * Increase memory size for Java
- Loading branch information
1 parent
91bcc55
commit 88aece9
Showing
16 changed files
with
120 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Reason: it's not possible to sync all the directories because of 'docs/0.10', 'docs/next', etc. | ||
# and latest release appears in the root directory | ||
|
||
set -e | ||
|
||
cd _site/ | ||
for file in *; do | ||
if [ -f "$file" ]; then | ||
echo "Copying $file ..." | ||
aws s3 cp $file s3://$S3_BUCKET/docs/$file --exclude "/CNAME" --exclude "/code/*" --exclude "/index.html" --exclude "/redirects.json" >> $BASEDIR/logs/aws_sync.log | ||
continue | ||
fi | ||
echo "Sync $file ..." | ||
aws s3 sync $file s3://$S3_BUCKET/docs/$file --delete --exclude "/CNAME" --exclude "/code/*" --exclude "/index.html" --exclude "/redirects.json" >> $BASEDIR/logs/aws_sync.log | ||
done |
9 changes: 5 additions & 4 deletions
9
.github/scripts/publish-landing-page.sh → .github/scripts/sync-main-with-aws.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Reason: The root directory also has docs/, docs/next/ and docs/<major.minor>. | ||
# Reason: it's not possible to sync all the directories because of 'docs/0.10', 'docs/next', etc. | ||
# and latest release appears in the root directory | ||
|
||
set -e | ||
|
||
MAIN_CONTENT=("CNAME" "code" "css" "error.html" "fonts" "img" "index.html" "js" "redirects.json") | ||
|
||
cd _site/ | ||
for file in ${MAIN_CONTENT[*]}; do | ||
|
||
for file in *; do | ||
if [ -f "$file" ]; then | ||
echo "Copying $file ..." | ||
aws s3 cp $file s3://$S3_BUCKET/$file >> $BASEDIR/logs/aws_sync.log | ||
continue | ||
fi | ||
|
||
echo "Sync $file ..." | ||
aws s3 sync $file s3://$S3_BUCKET/$file --delete >> $BASEDIR/logs/aws_sync.log | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
title: Arrow | ||
#------------------------- | ||
name: Λrrow | ||
#------------------------- | ||
description: Functional companion to Kotlin's Standard Library | ||
#------------------------- | ||
author: The Λrrow Authors | ||
keywords: functional-programming, kotlin-library, monads, monad-transformers, functional-data-structure, kotlin, fp-types, adt, free-monads, tagless-final, mtl, for-comprehension, category-theory | ||
#------------------------- | ||
url: https://arrow-kt.io | ||
#------------------------- | ||
github_repo: https://github.com/arrow-kt/arrow | ||
#------------------------- | ||
twitter_handle: "@arrow_kt" | ||
#------------------------- | ||
slack_kotlin_channel: "https://slack.kotlinlang.org" | ||
slack_arrow_channel: "https://kotlinlang.slack.com/archives/C5UPMM0A0" | ||
#------------------------- | ||
sass: | ||
style: compressed | ||
#------------------------- | ||
exclude: ['config.ru', 'Gemfile', 'Gemfile.lock', 'vendor', 'Procfile', 'Rakefile', '.bundle', 'apidocs/', 'docs/', 'css/docs-styles.scss', 'img/core/', 'img/docs/', 'img/fx/', 'img/incubator/', 'img/kotlin-stdlib.png', 'img/labels/', 'img/linting/', 'img/meta/', 'img/old-design/', 'img/optics/', 'img/quickstart/'] | ||
#------------------------- | ||
collections: | ||
code: | ||
output: true | ||
# Default Front Matter values to be set | ||
defaults: | ||
- scope: | ||
type: code | ||
values: | ||
layout: code | ||
|
||
# Plugins | ||
plugins: | ||
- jekyll-redirect-from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.