Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizaiton of Che Cloud Development Environments Blog post #40

Merged
merged 54 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a284db8
Fixes to vale.ini and jekyll serve command
l0rd Oct 24, 2023
e574171
New blog post: cde customization
l0rd Oct 24, 2023
eb91de3
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
a373c1f
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
b2c4287
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
4c8c31f
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
e7fb07f
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
2b38699
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
378c477
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
0afd48c
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
c300e01
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
83ed4ad
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
cecda29
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
9aefa8c
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
a4c3fcd
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
1f1b047
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
ed54ead
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
1e3029a
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
4c3e308
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
2f9788d
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
7255766
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
5c513c9
Add a devfile command to publish the blog site to surge
l0rd Jan 26, 2024
49ffaa2
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
e06bbda
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
96c07a2
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
3f10362
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
24a2841
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
26662fc
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
b26764e
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
6490ed9
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
494011d
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
5743b0b
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
3c37c2a
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
8467be2
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
d3d1c8d
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
c89a758
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
0286007
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
19dbabb
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
e2b0d2f
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
7f5b1c3
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
f806dd3
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
77f8afc
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
212a018
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
9dbd41a
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
6eb7d76
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
c145aad
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
19b7939
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
6e2db88
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
eae167b
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
dc1b165
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
4caeb71
Update _posts/2024-02-05-cde-customization.adoc
l0rd Jan 26, 2024
99056ea
Merge branch 'eclipse-che:main' into custom-cde
l0rd Jan 30, 2024
3e393a1
Fix "Comment PR" step in pr check workflow
l0rd Jan 30, 2024
3124664
Last updates
l0rd Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading