forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly reverting github/docs-internal#15313
- Loading branch information
1 parent
ed3baeb
commit f410fd1
Showing
19 changed files
with
136 additions
and
283 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
ALGOLIA_API_KEY= | ||
ALGOLIA_APPLICATION_ID= | ||
ALLOW_TRANSLATION_COMMITS= | ||
EARLY_ACCESS_HOSTNAME= | ||
EARLY_ACCESS_SHARED_SECRET= | ||
GITHUB_TOKEN= |
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,13 +1,14 @@ | ||
.algolia-cache | ||
.DS_Store | ||
.env | ||
node_modules | ||
/node_modules/ | ||
npm-debug.log | ||
coverage | ||
content/early-access | ||
content/early-access-test | ||
coverage/ | ||
/assets/early-access/ | ||
/content/early-access/ | ||
/data/early-access/ | ||
|
||
# blc: broken link checker | ||
blc_output.log | ||
blc_output_internal.log | ||
dist | ||
/dist/ |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = async function listHidden (req, res, next) { | ||
if (process.env.NODE_ENV === 'production') { | ||
return res.status(403).end() | ||
} | ||
|
||
const hiddenPages = req.context.pages.filter(page => page.hidden) | ||
let urls = [] | ||
|
||
hiddenPages.forEach(page => { | ||
const pageUrls = page.permalinks.map(permalink => permalink.href) | ||
urls = urls.concat(pageUrls) | ||
}) | ||
|
||
const output = ` | ||
<ul> | ||
${urls.map(url => `<li><a href="${url}">${url}</li>`).join('\n')} | ||
</ul> | ||
` | ||
|
||
return res.send(output) | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.