forked from nytimes/library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support arbitrary path prefix (nytimes#358)
* Add devcontainer * Fix engines to be compatible with App Engine * Hard code /library path everywhere * Fix some more path prefixes * Remove one library prefix * Add library prefix to search autocomplete select * Add library prefix to internal links * Migrate to NodeJS 12 * Upgrade to Node.js 16 * Don't prefix absolute URL for edit link * Don't prefix absoluter URL for edit footer button * Only prefix internal URLs * Fix url converter * Add deploy workflow * Add build step and create .env file * Base64 encode library service account * Implement PATH_PREFIX env var * Support path prefix in client-side js * Fix section links * Update customizations library name * Don't try to format url fragments * Don't try to format url fragments client side * Format * Remove custom GitHub workflow * Cleanup * Update package.json --------- Co-authored-by: Shane Moore <[email protected]>
- Loading branch information
1 parent
085566d
commit 6e883b2
Showing
31 changed files
with
135 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<%- include('partials/head', {title: template('landing.viewAll')}) %> | ||
<%- include('partials/head', {title: template('landing.viewAll'), formatUrl, pathPrefix}) %> | ||
<body> | ||
<%- include('partials/header', {parentLinks: [], title: template('landing.viewAll')}) %> | ||
<%- include('partials/header', {parentLinks: [], title: template('landing.viewAll'), formatUrl}) %> | ||
|
||
<div class="g-upper-body"> | ||
<%- include('partials/nav') %> | ||
<%- include('partials/nav', {formatUrl}) %> | ||
</div> | ||
|
||
<div id="category-page" class="g-body"> | ||
<div class="g-main-content"> | ||
<% all.forEach((category) => { %> | ||
<%- include('partials/childrenList', {kicker: category.prettyName, children: category.children, link: category.path}) %> | ||
<%- include('partials/childrenList', {kicker: category.prettyName, children: category.children, link: category.path, formatUrl}) %> | ||
<% }) %> | ||
</div> | ||
<script> seeMoreButton() </script> | ||
<%- include('partials/footer', { pageType: 'category_index' }) %> | ||
<%- include('partials/footer', { pageType: 'category_index', formatUrl }) %> | ||
</div> | ||
</body> | ||
</html> |
This file contains 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<header id="masthead" class="masthead" role="banner"> | ||
<div class="container"> | ||
<%- include('branding') %> | ||
<%- include('breadcrumb') %> | ||
<%- include('userTools') %> | ||
<%- include('branding', {formatUrl}) %> | ||
<%- include('breadcrumb', {formatUrl}) %> | ||
<%- include('userTools', {formatUrl}) %> | ||
</div> | ||
</header> |
This file contains 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 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 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 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
Oops, something went wrong.