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

NearForm pull request #243

Merged
merged 168 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
11eaf61
added staging and deploy previews workflows
bp289 Jul 4, 2023
52686f6
added build process in workflows
bp289 Jul 4, 2023
8096ebb
added build process in workflows
bp289 Jul 4, 2023
9eb7f9e
testing
bp289 Jul 4, 2023
c11c155
testing
bp289 Jul 4, 2023
ae7a0f3
testing
bp289 Jul 4, 2023
cbcc524
testing
bp289 Jul 4, 2023
be00000
testing
bp289 Jul 4, 2023
6b34662
testing
bp289 Jul 4, 2023
90cc47a
testing pr s3 bucket
bp289 Jul 6, 2023
8d02230
testing-aws-s3-pr
bp289 Jul 6, 2023
8d1c140
testing-aws-s3-pr
bp289 Jul 6, 2023
5535884
testing-aws-s3-pr
bp289 Jul 6, 2023
ee3ff04
testing-aws-s3-pr
bp289 Jul 6, 2023
2e65d9c
testing-aws-s3-pr
bp289 Jul 6, 2023
28ef2b5
testing-aws-s3-pr
bp289 Jul 6, 2023
18b3e60
testing-aws-s3-pr
bp289 Jul 6, 2023
f06117c
testing-aws-s3-pr
bp289 Jul 6, 2023
b0ff4a6
added a dash after the bucket names
MariamM110 Jul 6, 2023
441c36c
testing pr s3 bucket
bp289 Jul 6, 2023
547d754
Merge branch 'staging-deploy-testing' of github.com:nearform/biocondu…
bp289 Jul 6, 2023
2b0baed
testing pr s3 bucket revert
bp289 Jul 6, 2023
1b41fdf
testing pr s3 bucket revert
bp289 Jul 6, 2023
1de10d9
testing pr s3 bucket with dashes
bp289 Jul 6, 2023
10f6e4a
testing pr s3 bucket with dashes
bp289 Jul 6, 2023
bcf9309
Merge pull request #1 from nearform/staging-deploy-testing
bp289 Jul 7, 2023
1669853
testing pr s3 bucket with dashes
bp289 Jul 7, 2023
0288a4d
testing pr s3 bucket with dashes
bp289 Jul 7, 2023
7b090a4
Merge pull request #4 from nearform/testing-close-pr
bp289 Jul 7, 2023
2725037
made changes to the dockerfile
MariamM110 Jul 10, 2023
51c3dc6
testing pr s3 bucket with dashes
bp289 Jul 10, 2023
4cd3a08
added staging yaml, with secrets set up
bp289 Jul 10, 2023
32f707c
Merge pull request #14 from nearform/testing/staging-deploy
bp289 Jul 10, 2023
b416054
added ability to only run pr preview on certian branches
bp289 Jul 11, 2023
ae914c4
modified dockerfile further
MariamM110 Jul 11, 2023
5d0a25d
Update .github/workflows/pr_deploy.yaml
bp289 Jul 11, 2023
be4c068
Update .github/workflows/pr_deploy.yaml
bp289 Jul 11, 2023
a37ab42
Merge pull request #15 from nearform/workflows/tweaks
bp289 Jul 11, 2023
f5dbd42
Merge branch 'redesign2023' of github.com:nearform/bioconductor.org i…
MariamM110 Jul 11, 2023
563aa10
pulled from redesign branch
MariamM110 Jul 11, 2023
207305e
added ability to run only if it is not on draft pr
bp289 Jul 11, 2023
34ed720
added node modules to gitignore
bp289 Jul 11, 2023
54a52dc
removed node modules
bp289 Jul 11, 2023
bb632a4
docker section in readme file has been updated
MariamM110 Jul 11, 2023
99f2473
changed package.json
bp289 Jul 12, 2023
f1e0f2c
changed super linter version for quicker loading
bp289 Jul 12, 2023
f8b7a93
changed super linter version for quicker loading
bp289 Jul 12, 2023
e078b9c
further edits to the readme
MariamM110 Jul 12, 2023
f73f1e9
updated readme and linting information
bp289 Jul 12, 2023
111b7ca
updated readme and linting information
bp289 Jul 12, 2023
50ac5f6
added eslint
bp289 Jul 12, 2023
d7736b2
added eslint
bp289 Jul 12, 2023
58534bf
added eslint
bp289 Jul 12, 2023
cf61e33
changed validation rules
bp289 Jul 12, 2023
2dc105a
changed validation rules
bp289 Jul 12, 2023
67d5d85
removed dependencies
bp289 Jul 12, 2023
2822e74
added scripts
bp289 Jul 12, 2023
ab231cb
updated readme
bp289 Jul 12, 2023
f1ca3a9
updated to lint everything
bp289 Jul 12, 2023
c110237
removed description
bp289 Jul 12, 2023
586c268
Update README.md
bp289 Jul 13, 2023
6da57ab
added another section for the removal of a docker container
MariamM110 Jul 13, 2023
e07cc2b
Update package.json, changed lint-all to lint
bp289 Jul 13, 2023
688a90f
Merge pull request #12 from nearform/dockerfile
MariamM110 Jul 13, 2023
03cd50f
Update README.md node install instructions
bp289 Jul 13, 2023
48a4ae7
merged from redesign2023
bp289 Jul 13, 2023
d2e1fc1
Merge branch 'workflows/Linting' of github.com:nearform/bioconductor.…
bp289 Jul 13, 2023
c47593b
Merge branch 'Bioconductor:devel' into redesign2023
SociableSteve Jul 15, 2023
865fef1
taking out whitespace
bp289 Jul 17, 2023
eece037
Update package.json lint command changed
bp289 Jul 17, 2023
677c572
Update package.json removed test command
bp289 Jul 17, 2023
a27c130
Update linter.yaml taking away all other validations apart from css a…
bp289 Jul 17, 2023
bcb1635
Merge pull request #16 from nearform/workflows/Linting
bp289 Jul 17, 2023
755ae14
New project structure #10 (#23)
MariamM110 Jul 17, 2023
90e66d2
css library added (#34)
MariamM110 Jul 17, 2023
c5a8bf9
Fix for pr deployment (used feat for testing purposes) (#37)
bp289 Jul 18, 2023
66b6b09
Css font format (#35)
MariamM110 Jul 18, 2023
33acbb9
Workflows/kpi automation (#22)
bp289 Jul 18, 2023
fbc8b5e
changed psi to pagespeed (#43)
bp289 Jul 18, 2023
822ceab
[fix] auto formatting broke _sitehead (#44)
SociableSteve Jul 18, 2023
882aaad
Fix/kpis (#45)
bp289 Jul 19, 2023
ce422be
[fix] Wrong rem value for h6
SociableSteve Jul 19, 2023
c3d0d06
Merge pull request #46 from nearform/fix/h6-font-size
SociableSteve Jul 19, 2023
c8feb57
Fix/pr close fail (#55)
bp289 Jul 21, 2023
d99780a
correct variables (#60)
bp289 Jul 21, 2023
98b19e0
Header implementation - desktop (#47)
MariamM110 Jul 21, 2023
f988cef
Footer (#51)
bp289 Jul 21, 2023
5c27130
Prepared for generic page layout (#52)
SociableSteve Jul 24, 2023
ff9be49
Few minor changes to header (#64)
MariamM110 Jul 24, 2023
4e764b8
Added alt tags and links to footer social icons (#71)
SociableSteve Jul 24, 2023
920a6eb
Linter cleanup (#67)
bp289 Jul 25, 2023
fd035a3
Fix/page speed script (#61)
bp289 Jul 25, 2023
03887d1
html-linter changed, scripts changed (#79)
bp289 Jul 26, 2023
511166e
Header - mobile (#70)
MariamM110 Jul 27, 2023
58b61b3
Homepage - Hero (#73)
bp289 Jul 27, 2023
add0632
Homepage - Learn section (#80)
MariamM110 Jul 27, 2023
cdfae84
Feat/homepage content (#81)
bp289 Jul 27, 2023
7ef30c0
Feat/homepage events (#83)
bp289 Jul 27, 2023
5059a70
Feat/generic page content (#78)
SociableSteve Jul 27, 2023
4f42932
Fixed spacing and renamed CSS file (#86)
SociableSteve Jul 28, 2023
04d0301
Updated nanocUpdated nanoc (#87)
SociableSteve Jul 28, 2023
21c918f
Added caching for github actions (#90)
SociableSteve Jul 28, 2023
4001ee4
Fix/mobile header (#94)
SociableSteve Jul 28, 2023
e1d5b1e
Homepage - join (#92)
MariamM110 Jul 31, 2023
c7ef588
Fixed breadcrumbs (#96)
SociableSteve Jul 31, 2023
091839d
Updated notification (#98)
SociableSteve Jul 31, 2023
a8c514d
Homepage data-dev section (#97)
MariamM110 Aug 1, 2023
ea31fd3
Added meta description (#101)
SociableSteve Aug 1, 2023
b658142
Removed tag pair linter (#106)
SociableSteve Aug 2, 2023
48d24a0
Homepage fix (#104)
MariamM110 Aug 2, 2023
9124b8f
Get started page (#100)
MariamM110 Aug 2, 2023
a4493d7
Feat/learnpage (#108)
bp289 Aug 2, 2023
c69acea
About section (#110)
MariamM110 Aug 3, 2023
cede784
Removed min and max width in info section (#112)
MariamM110 Aug 3, 2023
56c08bc
added more text to learn more (#115)
MariamM110 Aug 3, 2023
9cd0802
changed img from svgs to jpgs (#114)
MariamM110 Aug 3, 2023
56092f3
Added href for link (#116)
SociableSteve Aug 3, 2023
4937849
Feat/developers (#113)
bp289 Aug 3, 2023
5af8843
Added more events to homepage (#111)
MariamM110 Aug 3, 2023
9511b58
added links and labels (#117)
MariamM110 Aug 3, 2023
dd994aa
Updated after design review
SociableSteve Aug 4, 2023
1caf7c5
Fixed a11y errors for the homepage (#118)
SociableSteve Aug 4, 2023
83b0991
Feat/sidebar styling (#103)
bp289 Aug 4, 2023
1d5ca5c
Try device-width rather than width (#120)
SociableSteve Aug 4, 2023
d0cf377
Fix/ios (#121)
SociableSteve Aug 4, 2023
3c4bd8f
Set doctype (#122)
SociableSteve Aug 4, 2023
5c52a1d
Mobile view collapse fix (#130)
bp289 Aug 7, 2023
25a1e7a
Moved default font (#126)
SociableSteve Aug 7, 2023
ec6f9ff
removed some padding (#131)
bp289 Aug 7, 2023
3cb255a
Get started mobile fix (#132)
bp289 Aug 7, 2023
8f75738
tablet height no doodles (#133)
bp289 Aug 7, 2023
5e53d29
changed header nav styling (#136)
MariamM110 Aug 8, 2023
c957439
added padding (#135)
MariamM110 Aug 8, 2023
7cced6f
Homepage button colours update (#145)
MariamM110 Aug 8, 2023
3615d29
Added linting usage instructions (#147)
SociableSteve Aug 8, 2023
37b8b2b
Hide testimonials (#144)
MariamM110 Aug 8, 2023
435f204
Announcement scrolls off (#146)
bp289 Aug 8, 2023
70429f5
Package page redesign (#99)
SociableSteve Aug 9, 2023
5686003
Fixed bug reports (#149)
SociableSteve Aug 9, 2023
eba083a
Docs/previews (#150)
bp289 Aug 9, 2023
ea8f13e
finished fixing subnavs (#151)
bp289 Aug 9, 2023
07d28c6
can click see more on mobile (#160)
MariamM110 Aug 9, 2023
f12b6db
commented out staging (#165)
bp289 Aug 10, 2023
0d62f82
Fixed base URL causing logo and link issues (#159)
SociableSteve Aug 10, 2023
e985a78
Added packages to top nav (#161)
SociableSteve Aug 10, 2023
b213c0a
changed subnav name (#171)
MariamM110 Aug 10, 2023
f3275de
Changed contact us email (#166)
MariamM110 Aug 10, 2023
1ba3e14
Tablet breakpoints for package page (#167)
bp289 Aug 10, 2023
04ee83e
added scroll view to package listing (#168)
MariamM110 Aug 10, 2023
f892ca7
Package listing fixes (#175)
bp289 Aug 10, 2023
9ba234b
Fixed overflowing text (#169)
bp289 Aug 10, 2023
cfbc0c9
Small changes (#176)
MariamM110 Aug 10, 2023
8fa649a
changed width (#178)
MariamM110 Aug 10, 2023
2fdc52c
Added margin auto to gradient border (#179)
bp289 Aug 10, 2023
901dcbb
Re-enable staging deploy in code (#192)
SociableSteve Aug 11, 2023
7398888
Fixed spacing (#191)
SociableSteve Aug 11, 2023
8645ddb
removed list (#185)
MariamM110 Aug 11, 2023
abb84a4
added missing link (#183)
bp289 Aug 11, 2023
ee712ba
removed extra bullets, added ul (#184)
bp289 Aug 11, 2023
96a7117
Added citation styling (#196)
SociableSteve Aug 11, 2023
c8c2fa9
Bullets in mirror (#197)
MariamM110 Aug 11, 2023
b03bc3d
changed to 1400px breaking (#199)
bp289 Aug 11, 2023
d53faf3
changed breakpoint (#200)
MariamM110 Aug 11, 2023
5f4075c
Changed styling (#198)
SociableSteve Aug 11, 2023
288073e
Docker page scroll offset (#195)
bp289 Aug 11, 2023
a5009d9
Fix breakpoint
SociableSteve Aug 11, 2023
c778cc0
Added scrolling to the right location on page load
SociableSteve Aug 11, 2023
05b39bb
Fixed date
SociableSteve Aug 11, 2023
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
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assets/js/search.js
assets/js/bioconductor.js
assets/js/bioc_views.js
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"env": {
"browser": true,
"es2021": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {}
}
35 changes: 35 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Linters
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
if: github.event.pull_request.draft == false
name: Run Linters
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter/slim@v5
env:
LINTER_RULES_PATH: /
VALIDATE_ALL_CODEBASE: false
VALIDATE_GITHUB_ACTIONS: false
VALIDATE_MARKDOWN: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_JSCPD: false
VALIDATE_JSON: false
VALIDATE_R: false
VALIDATE_RUBY: false
VALIDATE_JAVASCRIPT_STANDARD: false
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json
DEFAULT_BRANCH: redesign2023
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/pr_close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PR - Closed
on:
pull_request:
types: [closed]

jobs:
dev-pr-close-s3:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Empty Website Bucket
run: |
if aws s3api head-bucket --bucket pr-preview-bioconductor-pr${{github.event.number}} 2>/dev/null; then
aws s3 rm s3://pr-preview-bioconductor-pr${{github.event.number}} --recursive
echo "BUCKET_EXISTS=true" >> "$GITHUB_ENV"
else
echo "Bucket does not exist"
echo "BUCKET_EXISTS=false" >> "$GITHUB_ENV"
fi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
- name: Delete Website Bucket
if: ${{env.BUCKET_EXISTS == 'true'}}
uses: danburtenshaw/[email protected]
with:
bucket-prefix: "pr-preview-bioconductor"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107 changes: 107 additions & 0 deletions .github/workflows/pr_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Pr - Preview
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
dev-pr-create-s3:
if: github.event.pull_request.draft == false

runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Restore Nanoc Cache
id: cache-nanoc-tmp
uses: actions/cache/restore@v3
with:
path: tmp
key: ${{ runner.os }}-nanoc-tmp

- name: Restore Site Output Cache
id: cache-site-output
uses: actions/cache/restore@v3
with:
path: output
key: ${{ runner.os }}-site-output

- name: Set up ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: "2.6.5"

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: build website
run: rake

- name: Create Bucket
run: |
if aws s3api head-bucket --bucket pr-preview-bioconductor-pr${{github.event.number}} 2>/dev/null; then
echo "Bucket already exists"
else
aws s3 mb s3://pr-preview-bioconductor-pr${{github.event.number}}
aws s3api delete-public-access-block --bucket pr-preview-bioconductor-pr${{github.event.number}}
aws s3api delete-bucket-ownership-controls --bucket pr-preview-bioconductor-pr${{github.event.number}}
aws s3api put-bucket-website --bucket pr-preview-bioconductor-pr${{github.event.number}} \
--website-configuration '{"IndexDocument":{"Suffix":"index.html"},"ErrorDocument":{"Key":"404.html"}}'
fi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
- name: Deploy S3 Website
uses: danburtenshaw/[email protected]
with:
bucket-prefix: "pr-preview-bioconductor"
folder-to-copy: "./output"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
kpi_metrics:
needs: dev-pr-create-s3
permissions:
pull-requests: write
name: All KPI metrics
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18
- name: install psi and axe
run: |
npm install psi
npm install @axe-core/cli
- name: run desktop psi
run: |
echo "DESKTOP_PSI_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(node PageSpeed.js url=http://pr-preview-bioconductor-pr${{github.event.number}}.s3-website-us-east-1.amazonaws.com,strategy=desktop,threshold=50,apiKey=none)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: run mobile psi
run: |
echo "MOBILE_PSI_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(node PageSpeed.js url=http://pr-preview-bioconductor-pr${{github.event.number}}.s3-website-us-east-1.amazonaws.com,strategy=mobile,threshold=50,apiKey=none)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: add_comment_pageSpeed
uses: mshick/add-pr-comment@v2
with:
message: |
${{env.DESKTOP_PSI_RESULTS}}
${{env.MOBILE_PSI_RESULTS}}
message-id: psi
- name: run axe accesibility test
run: |
echo "AXE_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(npx axe http://pr-preview-bioconductor-pr${{github.event.number}}.s3-website-us-east-1.amazonaws.com)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: add_comment_axe
uses: mshick/add-pr-comment@v2
with:
message: ${{env.AXE_RESULTS}}
message-id: axe
99 changes: 99 additions & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Deploy To staging

on:
push:
branches:
- redesign2023
jobs:
staging-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
environment: staging

steps:
- name: checkout
uses: actions/checkout@v3

- name: Use Nanoc Cache
id: cache-nanoc-tmp
uses: actions/cache@v3
with:
path: tmp
key: ${{ runner.os }}-nanoc-tmp

- name: Use Site Output Cache
id: cache-site-output
uses: actions/cache@v3
with:
path: output
key: ${{ runner.os }}-site-output

- name: Set up ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: "2.6.5"

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Build website
run: rake

- name: Deploy website to staging s3
uses: Reggionick/[email protected]
with:
folder: output
bucket: ${{secrets.S3_BUCKET}}
bucket-region: us-east-1
delete-removed: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
kpi_metrics:
needs: staging-deploy
permissions:
pull-requests: write
name: All KPI metrics
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18
- name: install psi and axe
run: |
npm install psi
npm install @axe-core/cli
- name: run desktop psi
run: |
echo "DESKTOP_PSI_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(node PageSpeed.js url=${{vars.STAGING_URL}},strategy=desktop,threshold=50,apiKey=none)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: run mobile psi
run: |
echo "MOBILE_PSI_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(node PageSpeed.js url=${{vars.STAGING_URL}},strategy=mobile,threshold=50,apiKey=none)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: run axe accesibility test
run: |
echo "AXE_RESULTS<<EOF" >> $GITHUB_ENV
echo "$(npx axe ${{vars.STAGING_URL}})" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: send notification psi
if: ${{ github.ref == 'refs/heads/redesign2023' }}
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
text: "${{env.DESKTOP_PSI_RESULTS}} \n ${{env.MOBILE_PSI_RESULTS}}"
env:
SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK}}
- name: send notification axe
if: ${{ github.ref == 'refs/heads/redesign2023' }}
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
text: "${{env.AXE_RESULTS}}"
env:
SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK}}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ assets/help/workflows/*
workflows_tmp/
content/help/workflows/*
postgresql_password
manifest/*
manifest/*
node_modules/
package
21 changes: 21 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"doctype-first": false,
"spec-char-escape": false,
"head-script-disabled": true,
"style-disabled": true,
"attr-lowercase": true,
"attr-no-duplications": true,
"attr-no-unnecessary-whitespace": true,
"attr-value-single-quotes": false,
"attr-value-double-quotes": true,
"attr-whitespace": true,
"alt-require": true,
"input-requires-lable": true,
"tag-pair": false,
"tagname-lowercase": true,
"tagname-specialchars": true,
"src-not-empty": true,
"id-class-value": "dash",
"inline-script-disabled": true,
"inline-style-disabled": true
}
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["stylelint-config-standard"]
}
37 changes: 20 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
FROM ruby:2.6.5

## System dependencies

RUN apt-get update && apt install -y \
rsync \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
rsync \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

## Install gems
COPY Gemfile /opt
COPY Gemfile.lock /opt

## Set the working directory to /opt/bioconductor.org
WORKDIR /opt/bioconductor.org

## Copy the remaining files from bioconductor.org/ to /opt/bioconductor.org
COPY . .

COPY Gemfile /tmp
COPY Gemfile.lock /tmp
WORKDIR /tmp
## RUN bundle lock
## Install bundle and dependencies
RUN gem install bundler
RUN bundle install --jobs=4 && bundle clean --force

## Set up web server

EXPOSE 3000

## Create startup script

RUN echo '#! /bin/bash \n\
cd /bioconductor.org \n\
rake \n\
cd output \n\
adsf\n' > .startup.sh \\
RUN echo '#! /bin/bash' > .startup.sh \
&& echo 'cd /opt/bioconductor.org' >> .startup.sh \
&& echo 'rake' >> .startup.sh \
&& echo 'cd output' >> .startup.sh \
&& echo 'adsf' >> .startup.sh \
&& chmod +x .startup.sh

CMD ["./.startup.sh"]
CMD ["/opt/bioconductor.org/.startup.sh"]
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
raise 'Ruby version must be 2.3 or greater' unless RUBY_VERSION.to_f >= 2.3
source 'http://rubygems.org'
gem "nanoc", "~> 4.0"
gem "nanoc", "~> 4.9.5"
gem "pry"
gem "pry-byebug"
gem "rdiscount"
Expand Down
Loading
Loading