forked from expressjs/expressjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] gh-pages from expressjs:gh-pages #5
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
Open
pull
wants to merge
396
commits into
labaran1:gh-pages
Choose a base branch
from
expressjs:gh-pages
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
396 commits
Select commit
Hold shift + click to select a range
96ecdab
"Using template engines": Remove outdated info and broken links (#1588)
crandmck 23d3c12
fix links (#1587)
bjohansebas a55eccd
fix i18n banner (#1591)
bjohansebas 896e9da
feat: add color to inline code (#1592)
bjohansebas 4ee32e2
fix language switch issue (#1598)
bjohansebas 243407b
docs: update community page
UlisesGascon 902e008
Remove claim that examples are valid everywhere (#1611)
blakeembrey dfc48be
docs: v5 is now released (#1603)
ljharb 134191f
docs: update and translate to Spanish - Community Page (2024) (#1618)
juliogarciape 7eaff35
Removing beta warning. (#1619)
italojs 625f1d5
Update 4x changelog (#1605)
bjohansebas 3555981
fix: Erase a sentence about discussion (#1630)
LuiGeeDev 8f9626f
using pt-br announcement into pt-br index. issue: #1617 (#1623)
italojs 046df00
blog: security patches for Sep 24 (#1607)
UlisesGascon 52bf0e7
blog: Express.js Team Supports HeroDevs' Launch of Express NES (#1636)
UlisesGascon 6aa7167
remove runkit (#1635)
bjohansebas d2bef36
fix: remove non-existing link section (#1634)
wilyJ80 212f2f1
docs: change current and next version for the docs (#1602)
IamLizu 42adb68
feat - add api 5x in menu (#1613)
carlosstenzel 50c8c0b
Remove confusing note from the 4x documentation (#1599)
bjohansebas 2d58040
Use admonitions in several pages (#1595)
bjohansebas 74ec3a2
feat: translation footer links to pt BR (#1640)
mgsantos177 568d9f9
Fixed Bug: Links on the blog dont break to a new line on mobile - imp…
Shantanugupta43 f5ca0d8
Use blockquote element (#1638)
bjohansebas 6f59979
fix padding (#1627)
bjohansebas 5bbc22a
Update migration guide (#1610)
bjohansebas 24a104a
fix rules issues for update_external_docs workflow (#1606)
bjohansebas 332d90a
update external docs (#1649)
github-actions[bot] 30cde24
docs: update external docs (#1651)
github-actions[bot] 81f0ab3
feat: v5 release blog post (#1616)
wesleytodd cab8004
docs: add suggest description (#1620)
bjohansebas 81dc2a1
docs: reflect project license (#1655)
bjohansebas 875b6c0
fix dark mode flash (#1621)
chrisdel101 50ec70c
Add Korean-friendly font (#1597)
corydalis10 68dfd8e
ci: update team name for Update External Docs (#1660)
UlisesGascon 1046d09
update external docs (#1661)
github-actions[bot] b18b459
blog: Express.js Security Audit - A Milestone Achievement (#1657)
UlisesGascon 2cde7b5
Automate the version change of Express (#1643)
bjohansebas 9469620
update external docs (#1663)
github-actions[bot] bc03b0e
blog: title fix for the v5 release post (#1664)
wesleytodd 477d6ae
feat: update website to support Ruby 3.3.5 compatibility (from 3.1.1)…
Shantanugupta43 fac7900
move scripts to .github folder (#1669)
bjohansebas 6923c2e
Add multiple social media links to the footer (#1667)
bjohansebas e22de49
migrate link api reference to v5 (#1674)
carlosstenzel 210659f
new design and logic for the menu #1590 (#1568)
bjohansebas fc401a5
Add description to each page (#1639) (#1672)
rehmansheikh222 d557cca
General changelog (#1656)
bjohansebas b24af37
update external docs (#1677)
github-actions[bot] 9742627
Feat create new tags (#1666)
carlosstenzel 8aa4cac
✨ update TC (#1678)
ctcpip 993111b
Enhanced translation of index page to uk (#1680)
GeorgeShvab 6a4c8c4
ci: update update-external-docs workflow team name (#1662)
bjohansebas dc7e80e
ci: update node version, use setup-node, update checkout version (#1646)
bjohansebas 7961e3d
Translated community page to ukrainian (#1682)
GeorgeShvab 7b74c10
feat: improve home layout (#1670)
carlosstenzel d5ca463
update v5 migration instructions to use caret (#1692)
jonchurch 9092d18
chore: change description color in light mode (#1697)
cengizcmataraci 43a0169
Translated resources/middleware page to ukrainian (#1703)
GeorgeShvab a5de90b
update external docs (#1709)
github-actions[bot] 693da28
fix: update notice-{x}.md replace link (#1711)
carlosstenzel 73e7ba9
feat: add xx/changelog/index.md files for id & th (#1685)
peterdanwan 1136259
update external docs (#1715)
github-actions[bot] 2275070
ci: delete translation workflow (#1710)
bjohansebas 4f881e5
docs: add v5 migration note for app.listen (#1705)
dpopp07 9fc86bb
fix: replace broken link in the v5 release post (#1720)
abhijeetpandit7 c8fe247
update res.end (#1719)
axhuwastaken 11efa75
update external docs (#1721)
github-actions[bot] c2c8ccf
add 404 page (#1690)
bjohansebas 9a5001c
feat - add support and blog in menu (#1615)
carlosstenzel 428d518
Update route guide (#1626)
bjohansebas 1600096
improve changelog and add 4.21.2 (#1713)
bjohansebas 57fa67f
feat: add Rewind 2024 blog post (#1723)
UlisesGascon 0c48441
Feat/adjust in home poc (#1706)
carlosstenzel 2056624
feat: remove unused functions (#1698)
bjohansebas 91070a7
📝 update copyright notice (#1725)
ctcpip 8b8bc84
Fix broken urls in the examples page and translate the page to pt-BR …
nicolasgandrade 8db1fc0
update external docs (#1729)
github-actions[bot] f01c3da
Fix external links to strongloop.com (expressjs#1727) (#1728)
johnburnett 782e9df
style: remove center alignment from home content
bjohansebas c380cd4
♿️ don't center text
ctcpip a740824
Remove retina.js and convert icons to SVG (#1700)
bjohansebas 743ccef
Added the minimum supported node.js version to the support page (#1733)
Phillip9587 899dbfd
add examples for migration v5 (#1712)
bjohansebas e363253
Update link to HTTP status code documentation (#1741)
peterh-capella 2b3c9f1
docs: remove express v2 (#1740)
bjohansebas 8715a21
chore: add CODEOWNERS file for website and blog contributions (#1735)
bjohansebas 3536239
Contributing.md Enhancement (#1683)
chrisdel101 79e6a54
Update external docs (#1752)
github-actions[bot] 5d7c21f
fix indonesia support (#1765)
bjohansebas fabc75a
feat: add language picker (#1695)
cengizcmataraci 68b4840
remove prism (#1746)
bjohansebas bf006cd
Added bluesky icon and link in all footers (#1766)
joharkhan99 d94613a
separate content of headers and footer (#1769)
bjohansebas 73a6b75
Update Crowdin configuration file
ctcpip 0cf2846
Update Crowdin configuration file
ctcpip b56a8e6
Update Crowdin configuration file
ctcpip 31bb1d6
fix code padding (#1773)
bjohansebas 7e89208
Update external docs (#1782)
github-actions[bot] d63a98b
docs: update documentation for res.type() (#1783)
650a6a4
normalize announcements (#1784)
bjohansebas 5ab8e0d
Update API includes to use English language paths (#1778)
bjohansebas d94ab7d
Design system (#1742)
chrisdel101 52c111d
enable incremental build for local server (#1781)
bjohansebas ab4778a
Update Crowdin configuration file
ctcpip 8c04850
Update Crowdin configuration file
ctcpip 41697a8
✨ add crowdin action
ctcpip 1409e38
Update production best practices (#1679)
bjohansebas f669c5f
Replace link to Liquid (#1789)
Phillip9587 2067442
Update "Use helmet" section (#1790)
Phillip9587 85e0462
ci: deploy website with github actions (#1767)
bjohansebas 9157075
Update external docs (#1795)
github-actions[bot] 1e05e8b
feat: add configuration to display the announcements (#1791)
bjohansebas 1d9c326
Submenu anchor active (#1798) Merge
chrisdel101 db21b0c
accessibility issue fix for level one heading and its order (#1797)
ipreencekmr 67096ce
fix accessibility issue for text distinguishable links (#1796)
ipreencekmr 8e2dc7a
fix accessibility issue for iframe accessible name (#1802)
ipreencekmr 6c3cfbb
fix: update middleware documentation (#1806)
bjohansebas bdf2952
Update external docs (#1813)
github-actions[bot] ec5d01a
fix accessibility issue related to image alt text (#1809)
ipreencekmr 27cff69
fix(1815): colour contrast adjusted for comments in code blocks (#1818)
ipreencekmr 7f5bf72
Fix broken links on the middleware page (#1821)
hayden36 2cda09d
Feat : Add Table of Contents Component on pages (#1775)
ShubhamOulkar 7f9b0d8
docs: Correct Korean menu translation for guide entry (#1823)
choi2021 f3b92d9
docs: update security updates documentation for Express (#1800)
bjohansebas ffd1223
docs: remove repeated section from performance guide (#1824)
502d079
Do not enforce Ruby version (#1811)
bjohansebas 22f4946
docs: add codemods section for migrating to Express 5 (#1739)
bjohansebas e2814ae
ci: remove CI on review submission (#1812)
bjohansebas 6daa871
Update external docs (#1832)
github-actions[bot] 064fc0b
Adjust code background colour to improve clarity in dark mode (#1828)
UzairJ99 34a18e8
fix(1816): fixed an style issue inconsistency on home page (#1817)
ipreencekmr 26d0b1f
feat: add github edit btn (#1822)
ShubhamOulkar 29d6e0b
feat: normalize admoniations (#1810)
bjohansebas c07e0bb
📄 update license to CC BY 4.0
ctcpip 748c40e
docs: add deprecation note for 'back' redirect in res-redirect.md and…
bjohansebas 5e850e8
docs: add router debug log change to v5 migration guide (#1819)
d8c2409
fix(a11y): accessible text for screen readers (#1840)
ShubhamOulkar 76d9393
feat: use the express logo in the header (#1839)
ShubhamOulkar 461386f
improve accessibility in header buttons (#1833)
ShubhamOulkar 3926b29
fix: remove obsolete X-UA-Compatible meta tag (#1842)
bjohansebas b77de8a
Update external docs (#1843)
github-actions[bot] 586b428
feat(blog): 5.1.0 release blog (#1849)
wesleytodd 0aab4f2
fix: changelog link in v5.1.0 blog post (#1855)
ShubhamOulkar 77463b1
feat: add announcement content for Express 5.1.0 release (#1854)
bjohansebas 8f3f258
docs(changelog): update changelog for 5.1.0 release (#1850)
bjohansebas 8cc0a58
Update external docs (#1856)
github-actions[bot] f0ee73d
🐛 fix crowdin action
ctcpip 5c9f73f
🐛 fix crowdin action
ctcpip 70f3c82
fix(blog): added some clarification around dates in blog post (#1859)
wesleytodd 7e9249f
Update debugging.md (#1858)
elyas-32 a29e83d
feat: generate sitemap.xml for SEO indexing (#1838)
ShubhamOulkar 2da701b
ci: separates the upload of content to Crowdin from the download of c…
bjohansebas db7dc32
Revert "ci: separates the upload of content to Crowdin from the downl…
ctcpip 0ab83ba
remove license link from footer (#1863)
bjohansebas cae37bd
🔒️ fix permissions on workflow
ctcpip 3b8f190
feat: add feeds for the blog and vulnerabilities (#1867)
rowanmanning 688c59b
Fix formatting of *s in v5-1-latest-release (#1875)
gabriel-bezerra 9a89c2f
a11y fix: header navigation landmark (primary navigation) (#1848)
ShubhamOulkar 9e00f5a
Use 5.x path syntax in API examples (#1878)
krzysdz 4901220
update api to 5x (#1876)
bjohansebas ad856cd
Fix links that got broken in #1422 (#1885)
krzysdz 021c4d6
Remove router.param(fn) from 5.x docs (#1884)
krzysdz f24f45a
feat: add copy code btn (#1841)
ShubhamOulkar e69208e
Reflect body-parser changes in 5.x API docs and include those that wh…
krzysdz 8f6546c
feat enhancement : remove regression in express logo (#1887)
ShubhamOulkar 100dc75
Add Copy btn on install command (#1846)
ShubhamOulkar 20a6669
chore: refactor layout (#1888)
ShubhamOulkar 5c7a418
fix: dark/light mode theme regression (#1862)
bdkopen 0082552
Update 5x API docs with missing 4x changes (#1886)
krzysdz b17e3a1
Fix z-index bug in style.css (#1895)
raaid3 748c994
update admonition content formatting (#1896)
bjohansebas 72e664a
docs: remove deprecated and unmaintained pillarjs utils (#1889)
Phillip9587 ddcd1a6
feat: upload index.md to crowdin (#1899)
bjohansebas 22d3641
docs: update external docs (#1900)
github-actions[bot] cd9e6a3
blog: Spring Cleaning in Express.js (#1902)
UlisesGascon 658ab65
blog: create "May 2025 Security Releases" (#1909)
UlisesGascon dcdef7d
New Crowdin Translations (#1874)
github-actions[bot] 230fc6b
Update external docs (#1906)
github-actions[bot] 528cdf8
docs: change reference from v4 to v5 (#1914)
premdood 2c827d9
chore: update source references in contributing documentation (#1852)
bjohansebas 9d564ba
fix: update headings levels in migration guide (#1869)
bjohansebas fc56d27
[StepSecurity] Apply security best practices (#1905)
step-security-bot 4e625d4
Replace Google Font with local variable font (#1910)
utkarsh125 308cdf4
codeql: remove ruby from CodeQL language matrix (#1926)
bjohansebas 00a676d
Update external docs (#1922)
github-actions[bot] c530d43
i18n: new crowdin translations (#1923)
github-actions[bot] b460ccb
Add correct korean font file name (#1929)
ShubhamOulkar d1f904a
Display author avatars in the blog (#1915)
rowanmanning 643571d
remove unused CSS files and font assets (#1927)
bjohansebas cd8ffd5
chore(deps): bump webrick from 1.8.1 to 1.9.1 (#1919)
dependabot[bot] 14295d3
chore(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1 (#1917)
dependabot[bot] c8a13b7
chore(deps): bump ruby/setup-ruby from 1.207.0 to 1.244.0 (#1918)
dependabot[bot] 124133a
Normalize i18n notice translation (#1930)
ShubhamOulkar c98d2c4
blog: add "How Express.js Rebuilt Its Vulnerability Reporting Process…
UlisesGascon 30c053b
Eliminate layout shift in menu toggle arrow with CSS-only solution (#…
ShubhamOulkar 4ea8ef5
Update external docs (#1938)
github-actions[bot] b9d72b9
docs: new process for translate page (#1805)
bjohansebas 0f3d24c
doc: Fix ID on Header on Performance Best Practices Page (#1945)
bdkopen 9e68fa2
Update external docs (#1946)
github-actions[bot] 8fc9116
fix: remove code block rendering in the note section Closes #1949 (#1…
ayush00git 951e88c
chore(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 (#1937)
dependabot[bot] 81611aa
Update external docs (#1950)
github-actions[bot] 10155e9
i18n: new crowdin translations (#1939)
github-actions[bot] 722fb07
docs: clarify MIME type changes when migrating from Express 4 to 5 (#…
achaljhawar 57cbe6c
ci: update workflows (#1924)
bjohansebas c7b12bd
Remove strongloop from footer (#1779)
bjohansebas 7743e0f
fix: content overflow on small screen (#1948)
ShubhamOulkar 92ebb0c
i18n: new crowdin translations (#1956)
github-actions[bot] 90784d7
chore(deps): bump ruby/setup-ruby from 1.207.0 to 1.245.0 (#1958)
dependabot[bot] 1b2fff4
chore(deps-dev): bump eslint-plugin-import from 2.29.1 to 2.32.0 (#1957)
dependabot[bot] fde74c4
chore(deps-dev): bump eslint-plugin-promise from 6.2.0 to 6.6.0 (#1921)
dependabot[bot] 6a57f39
chore(deps): bump crowdin/github-action from 2.7.0 to 2.8.0 (#1959)
dependabot[bot] 407f352
docs: update external docs (#1969)
github-actions[bot] 79665c0
feat(index page): add express title and show LTS versions on the smal…
JoseDaniel959 0989623
blog: add "June 2025 Security Releases" (#1944)
UlisesGascon 61cfc19
fix: grid layout and refactor css (#1978)
ShubhamOulkar 120197a
build: apply language based on folder. (#1975)
bjohansebas 0f143c1
fix: add horizontal scroller on middleware table to prevent overflow …
Mohit5Upadhyay 35b4b3b
i18n: new crowdin translations (#1971)
github-actions[bot] 1917b49
chore: refactor footer and header icons (#1962)
ShubhamOulkar 7bf3227
Fix API reference nav missing bold (#1986)
danielzgtg 66c2b91
Fix changelog link on homepage (#1982)
antiquark007 3f02c01
i18n: new crowdin translations (#1991)
github-actions[bot] f263365
blog: July 2025 Security Releases (#1994)
UlisesGascon abee42a
Fix unclickable submenus on touchscreen tablet (#1983)
danielzgtg c75ec31
ci: run lighthouse report (#1985)
ShubhamOulkar 8c4ae2a
docs(basic-routing.md): align wording with the rest of document (#1966)
matzar b8d426e
docs(migrating-5): add section about express.static dotfiles defaulti…
VishalRMahajan 3751b43
chore(deps): bump ruby/setup-ruby from 1.245.0 to 1.254.0 (#1996)
dependabot[bot] d5eb506
chore(deps): bump crowdin/github-action from 2.8.0 to 2.9.1 (#1997)
dependabot[bot] 4c0838e
docker: match GH page ruby version (#1980)
jonchurch 90e5a31
chore: ♻️ remove jquery (#1964)
ShubhamOulkar 74fcef5
ci(lighthouse) : remove seo results (#1998)
ShubhamOulkar 76bbf94
ci: remove base_url from crowdin workflows (#1979)
bjohansebas de12edc
feat(#1932): implement smooth scrolling for anchor navigation across …
Mohit5Upadhyay 69c0345
ci: fix security alert for Lighthouse workflow (#2031)
bjohansebas 5df99fe
ci: fix multiple comments in Lighthouse workflow (#2030)
bjohansebas c2e3f31
docs: add option to express.urlencoded middleware documentation (#2001)
bjohansebas 10929d3
i18n: new crowdin translations (#2032)
github-actions[bot] 8c1e4b3
docs: update res.clearCookie documentation for clarity and accuracy (…
bjohansebas b07d14a
Update links to 5x api docs on `use middleware` page (#2039)
ShubhamOulkar 35e18b6
chore(fonts):⚡reduce font payload (#1999)
ShubhamOulkar 53b9a0e
docs: improve the documentation of path matching behavior (#2036)
kushal4345 e52698d
i18n: new crowdin translations (#2041)
github-actions[bot] ae6197f
docs: document array and multiple-args support in req.is (#2042)
GauravKesh 4106a90
ci: skip Lighthouse audit when Netlify preview is not live (#2048)
ShubhamOulkar 9b41d4d
chore(deps): bump ruby/setup-ruby from 1.254.0 to 1.257.0 (#2051)
dependabot[bot] e526272
chore(deps): bump actions/upload-pages-artifact from 3 to 4 (#2052)
dependabot[bot] 1a79fca
chore(deps): bump crowdin/github-action from 2.9.1 to 2.10.0 (#2053)
dependabot[bot] 72ff6ba
chore(deps): bump actions/checkout from 4 to 5 (#2054)
dependabot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 @@ | ||
# Website development | ||
* @expressjs/docs-collaborators | ||
|
||
# Codeowners | ||
.github/CODEOWNERS @expressjs/docs-captains | ||
|
||
# Blog | ||
_posts @expressjs/express-tc |
This file contains hidden or 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,25 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: bundler | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] |
This file contains hidden or 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,92 @@ | ||
#!/bin/bash | ||
|
||
# This script replaces the contents of a section with the contents from the annotated source address or local file paths inside the DEST file. | ||
|
||
# read contents of file into memory | ||
DEST="../../en/resources/contributing.md" | ||
|
||
# track the header level | ||
level='' | ||
# tracks src for curl calls | ||
src='' | ||
# tracks file paths for local file reads | ||
local='' | ||
while IFS= read -r line; do | ||
# REMOVE PREVIOUS CONTENT SECTION | ||
# if src or local tags are not empty | ||
if [[ -n "$src" || -n "$local" ]]; then | ||
# if current line not a horitzontal rule hr | ||
if [[ "$line" != "----"* ]]; then | ||
# if line == level -- level is num of ## | ||
if [[ "$line" == "$level"'#'* || | ||
# line not a header line | ||
"$line" != '#'* ]]; then | ||
# skip line and rewrite over old content | ||
continue | ||
fi | ||
fi | ||
fi | ||
|
||
# PRINT TO PAGE SECTION | ||
src='' | ||
local='' | ||
# if line is a header | ||
if [[ "$line" == '#'* ]]; then | ||
# if header has (#id-of-link) or {#id-on-page} patterns | ||
if [[ $line =~ (\(\#.*\))\. || "$line" =~ \{\#.*\} ]]; then | ||
# isolate the matching part of line | ||
match=${BASH_REMATCH[0]} | ||
# remove match - leaving rest | ||
rest=${line//${match}} | ||
# remove any # symbols from start | ||
title_rest=${rest##*\#} | ||
# slice rest of line to get only level | ||
level="${rest:0:$((${#rest} - ${#title_rest}))}" | ||
else | ||
# any other headers -- these before SRC/LOCAL pages anchors | ||
header=${line##*\#} | ||
level="${line:0:$((${#line} - ${#header}))}" | ||
fi | ||
# if line is SRC anchor in read file | ||
elif [[ "$line" == '<!-- SRC:'* ]]; then | ||
# remove the first 10 chars | ||
src=${line:10} | ||
# % remove from end until after white space -- leaves src details | ||
src=${src% *} | ||
# if line is LOCAL anchor in read file | ||
elif [[ "$line" == '<!-- LOCAL:'* ]]; then | ||
# remove the first 12 chars | ||
local=${line:12} | ||
# % remove from end until after white space -- leave local details | ||
local=${local% *} | ||
# leave only path to file | ||
local=${local#* } | ||
fi | ||
# prints line to the page | ||
echo "$line" | ||
|
||
if [[ -n "$local" ]]; then | ||
# cat file -- outputs full contents of file at local path | ||
cat "$local" | \ | ||
# remove the top 1# headers from cat'd file | ||
sed -En '/^##|^[^#]/,$p' | \ | ||
# remove GH MD specific tags start w '[!NOTE\] + the following line | ||
sed -E '/^>\[!NOTE\]*/{N;d;}' | \ | ||
# change GH specific MD IMPORTANT tags -> change into plain MD | ||
sed -E 's/> \[!IMPORTANT\]/> **IMPORTANT:** /g' | ||
echo | ||
elif [[ -n "$src" ]]; then | ||
echo | ||
path=${src#* } | ||
repo=${src% *} | ||
curl -s "https://raw.githubusercontent.com/${repo}/master/${path}" | \ | ||
# if line is ## or not # | ||
sed -En '/^##|^[^#]/,$p' | \ | ||
# add additional # every header | ||
sed 's/^#/&'"${level:1}"'/g' | \ | ||
# format GH links when match | ||
sed -E 's/(\[[^]]*\])\(([^):#]*)\)/\1(https:\/\/github.com\/'"$(sed 's/\//\\\//g' <<< "$repo")"'\/blob\/master\/\2)/g' | ||
echo | ||
fi | ||
# read in dest file then write back to file | ||
done <<<"$(< $DEST)" > $DEST |
This file contains hidden or 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,20 @@ | ||
import { readFile, writeFile } from 'node:fs/promises' | ||
import path from 'node:path' | ||
|
||
const NPMURL = 'https://registry.npmjs.org/express' | ||
|
||
const response = await (await fetch(NPMURL)).json() | ||
|
||
const { next, latest } = response['dist-tags'] | ||
|
||
try { | ||
const filePath = path.resolve(path.join('..', '..', '_data', 'express.yml')) | ||
let content = await readFile(filePath, 'utf8') | ||
|
||
content = content.replace(/current_version: ".*"/, `current_version: "${latest}"`) | ||
content = content.replace(/next_version: ".*"/, `next_version: "${next}"`) | ||
|
||
await writeFile(filePath, content, 'utf8') | ||
} catch (error) { | ||
console.error('Error updating versions in _data/express.yml:', error) | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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,73 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: ["gh-pages"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["gh-pages"] | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["javascript", "actions"] | ||
# CodeQL supports [ $supported-codeql-languages ] | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v5 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
Check warningCode scanning / Scorecard Pinned-Dependencies
score is 4: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using [https://app.stepsecurity.io](https://app.stepsecurity.io/secureworkflow/expressjs/expressjs.com/codeql.yml/gh-pages?enable=pin)
Click Remediation section below for further remediation help
|
||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
Check warningCode scanning / Scorecard Pinned-Dependencies
score is 4: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using [https://app.stepsecurity.io](https://app.stepsecurity.io/secureworkflow/expressjs/expressjs.com/codeql.yml/gh-pages?enable=pin)
Click Remediation section below for further remediation help
|
||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
Check warningCode scanning / Scorecard Pinned-Dependencies
score is 4: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using [https://app.stepsecurity.io](https://app.stepsecurity.io/secureworkflow/expressjs/expressjs.com/codeql.yml/gh-pages?enable=pin)
Click Remediation section below for further remediation help
|
||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains hidden or 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,30 @@ | ||
name: Crowdin Upload | ||
|
||
on: | ||
push: | ||
branches: [ gh-pages ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
Check failureCode scanning / Scorecard Token-Permissions
score is 0: topLevel 'contents' permission set to 'write'
Remediation tip: Visit [https://app.stepsecurity.io/secureworkflow](https://app.stepsecurity.io/secureworkflow/github.com/expressjs/expressjs.com/crowdin.yml/gh-pages?enable=permissions).
Tick the 'Restrict permissions for GITHUB_TOKEN'
Untick other options
NOTE: If you want to resolve multiple issues at once, you can visit [https://app.stepsecurity.io/securerepo](https://app.stepsecurity.io/securerepo) instead.
Click Remediation section below for further remediation help
|
||
pull-requests: write | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v5 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: crowdin action | ||
uses: crowdin/github-action@9787f4fcb6a8450929673f1e8db841e8a5c35a2f # https://github.com/crowdin/github-action/releases/tag/v2.10.0 | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / Scorecard
Pinned-Dependencies