зеркало из https://github.com/github/docs.git
92d5722103
* Add 2.22.0 * Add 2.22.1 * Add 2.22.2 * Add 2.22.3 * Add 2.22.4 * Lint YAML files * intro shouldn't be required * Align all notes * Full height sidebar * Make the sidebar full height properly * Get the real layout going * Include full name * Move details > summary around * Fix sticky sidebar * Tweak bottom of page * Add more label colors * Change heading title * Don't be <details>, change sticky header * Include other releases' info * Show prev/next links * Change sidenav to show all releases * Fix ordering of chevron * Fix link underlines * Collapsing minor versions * Moar padding * Setup schema for sub-sections * Update a YAML file to match schema * Redo rendering/sorting logic * Update layout * Convert remaining notes * Improve schema * Use proper min properties * Custom bullet points * Show details control for version picker * Improve layout on small screens * One more tiny fix * Order by semver * Use proper version in details * Fix extra arrows showing up * Change label colors * Pass the reference check * Add gradients * Gradient all the things |
||
---|---|---|
.. | ||
contextualizers | ||
redirects | ||
README.md | ||
archived-enterprise-versions-assets.js | ||
archived-enterprise-versions.js | ||
breadcrumbs.js | ||
categories-for-support-team.js | ||
connect-datadog.js | ||
context.js | ||
cookie-parser.js | ||
cors.js | ||
csp.js | ||
csrf-route.js | ||
csrf.js | ||
detect-language.js | ||
dev-toc.js | ||
disable-caching-on-safari.js | ||
early-access-breadcrumbs.js | ||
enterprise-server-releases.js | ||
events.js | ||
featured-links.js | ||
find-page.js | ||
handle-csrf-errors.js | ||
handle-errors.js | ||
handle-invalid-paths.js | ||
index.js | ||
loaderio-verification.js | ||
rate-limit.js | ||
record-redirect.js | ||
render-page.js | ||
req-utils.js | ||
robots.js | ||
set-fastly-cache-headers.js | ||
trigger-error.js | ||
webpack.js |
README.md
Middleware
Each file in this directory exports an Express Middleware function.
For more info, see https://expressjs.com/en/guide/using-middleware.html
Subdirectories
There are subdirectories for different types of middleware:
- contextualizers modify the
req.context
object that is used to render pages. - redirects handle... redirects!