Skip to content

Commit

Permalink
Customizaiton of Che Cloud Development Environments Blog post (#40)
Browse files Browse the repository at this point in the history
* Fixes to vale.ini and jekyll serve command

* New blog post: cde customization

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: Ilya Buziuk <[email protected]>

* Add a devfile command to publish the blog site to surge

Signed-off-by: Jane Doe <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Update _posts/2024-02-05-cde-customization.adoc

Co-authored-by: David Kwon <[email protected]>

* Fix "Comment PR" step in pr check workflow

Signed-off-by: Jane Doe <[email protected]>

* Last updates

Signed-off-by: Jane Doe <[email protected]>

---------

Signed-off-by: Mario Loriedo <[email protected]>
Co-authored-by: Ilya Buziuk <[email protected]>
Co-authored-by: David Kwon <[email protected]>
  • Loading branch information
3 people authored Feb 2, 2024
1 parent d6742b5 commit f6475a0
Show file tree
Hide file tree
Showing 17 changed files with 878 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .che/che-theia-plugins.yaml

This file was deleted.

19 changes: 16 additions & 3 deletions .devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ commands:
exec:
label: 0. Install Gemfile dependencies
component: jekyll
commandLine: bundle install
commandLine: bundle install --gemfile=/projects/che-blog/Gemfile
group:
kind: build
isDefault: true
- id: start-jekyll-server
exec:
label: 1. Start the jekyll based blog server
component: jekyll
# commandLine: bundle jekyll serve --incremental --watch --host 0.0.0.0 --livereload --livereload-port 35729
commandLine: bundle exec jekyll serve --incremental --watch --host 0.0.0.0
commandLine: bundle exec jekyll serve --watch --host 0.0.0.0 --future
group:
kind: run
isDefault: true
Expand All @@ -43,3 +42,17 @@ commands:
group:
kind: build
isDefault: false
- id: publish-blog-to-surge
exec:
component: jekyll
commandLine: |
read -p "ENTER your GitHub login to customize the URL: " GH_LOGIN &&
read -p "ENTER a surge.sh token: " SURGE_TOKEN &&
export SURGE_TOKEN &&
export GH_LOGIN &&
npm install -g surge &&
surge ./_site --domain https://pr-${GH_LOGIN}-che-blog.surge.sh
events:
postStart:
- bundle-install
2 changes: 1 addition & 1 deletion .docker/.vale.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
StylesPath = /home/jekyll/.vale/styles
StylesPath = /home/user/.vale/styles

# Minimum alert level
# -------------------
Expand Down
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"
groups:
all-actions:
patterns: [ "*" ]
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"
16 changes: 12 additions & 4 deletions .github/workflows/publish-surge-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,26 @@ jobs:
echo "PR_SHA=$pr_sha" >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
- name: publish
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
run: |
npm install -g surge
export DEPLOY_DOMAIN=https://pr-check-${PR_NUMBER}-${{matrix.dist}}-che-blog.surge.sh
export DEPLOY_DOMAIN=https://pr-check-${PR_NUMBER}-che-blog.surge.sh
echo "DEPLOY_DOMAIN=$DEPLOY_DOMAIN" >> $GITHUB_ENV
surge ./_site --domain $DEPLOY_DOMAIN
- name: 'Comment PR'
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { repo: { owner, repo } } = context;
await github.repos.createCommitStatus({ owner, repo, sha: process.env.PR_SHA, state: "success", target_url: process.env.DEPLOY_DOMAIN, description: "Browse PR check blog content live", context: "surge"})
await github.rest.repos.createCommitStatus({
owner,
repo,
sha: process.env.PR_SHA,
state: "success",
target_url: process.env.DEPLOY_DOMAIN,
description: "Browse PR check blog content live",
context: "surge"
})
2 changes: 1 addition & 1 deletion .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run:
echo using '${{ env.CHANGED_FILES }}' files
- name: Vale Linter
uses: benoitf/vale-action@comment-pr
uses: benoitf/vale-action@reviewdog
with:
files: '${{ env.CHANGED_FILES }}'
styles: |
Expand Down
441 changes: 441 additions & 0 deletions _posts/2024-02-05-cde-customization.adoc

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions assets/html/cde-customization/devfile-table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@import url(https://iosevka-webfonts.github.io/iosevka/iosevka.css);
/* @import url(https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css); */

legend {
background-color: #000;
color: #fff;
padding: 3px 6px;
font-family: "Iosevka Web", sans-serif;
}

input {
margin: 0.4rem;
}

label {
font-family: "Iosevka Web", sans-serif;
}

.devfiles {
border: 1px solid black;
}

pre {
/* margin: 0.4rem; */
/* padding: 10px 20px 20px 20px; */
font-family: "Iosevka Web", sans-serif;
}

code {
font-family: "Iosevka Web", sans-serif;
}

del,
ins {
display: block;
text-decoration: none;
position: relative;
}

del {
background-color: #fbb;
}

ins {
background-color: #d4fcbc;
}

.area {
display: none;
clear: both;
}

.steps {
margin: 0.4rem 0.4rem 0.4rem 0.4rem;
/* border: 1px solid black; */
/* padding: 200px 200px 200px 200px; */
font-family: "Iosevka Web", sans-serif;
}

/* (A) FLEX CONTAINER */
/* .flex-wrap {
display: flex;
} */

/* (B) OPTIONAL COSMETICS */
.flex-wrap > * {
box-sizing: border-box;
/* width: 800px; */
padding: 10px;
}
Loading

0 comments on commit f6475a0

Please sign in to comment.