Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update analytics, canonical URL, ads (#15996)
* docs: Update analytics, canonical URL, ads * Update docs/src/_includes/layouts/base.html Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update docs/src/_data/links.json Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update docs/src/_includes/partials/docs-footer.html Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
d94dc84
commit 4871047
Showing
17 changed files
with
291 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @fileoverview Convenience helper for site data. | ||
* @author Nicholas C. Zakas | ||
*/ | ||
|
||
//----------------------------------------------------------------------------- | ||
// Requirements | ||
//----------------------------------------------------------------------------- | ||
|
||
const path = require("path"); | ||
const fs = require("fs"); | ||
const yaml = require("js-yaml"); | ||
|
||
//----------------------------------------------------------------------------- | ||
// Exports | ||
//----------------------------------------------------------------------------- | ||
|
||
module.exports = function(eleventy) { | ||
|
||
const siteName = eleventy.site_name; | ||
const siteDataFile = path.resolve(__dirname, `sites/${siteName}.yml`); | ||
|
||
fs.statSync(siteDataFile); | ||
|
||
return yaml.load(fs.readFileSync(siteDataFile)); | ||
} |
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,109 @@ | ||
#------------------------------------------------------------------------------ | ||
# English Site Details | ||
# The documentation site that is hosted at eslint.org/docs | ||
# Author: Nicholas C. Zakas | ||
#------------------------------------------------------------------------------ | ||
|
||
#------------------------------------------------------------------------------ | ||
# Global Settings | ||
#------------------------------------------------------------------------------ | ||
|
||
language: | ||
code: en | ||
flag: 🇺🇸 | ||
name: English (US) | ||
locale: en-US | ||
hostname: eslint.org | ||
|
||
#------------------------------------------------------------------------------ | ||
# Analytics | ||
#------------------------------------------------------------------------------ | ||
|
||
google_analytics: | ||
code: "G-7DGPHY308T" | ||
|
||
#------------------------------------------------------------------------------ | ||
# Ads | ||
#------------------------------------------------------------------------------ | ||
|
||
carbon_ads: | ||
serve: CESDV2QM | ||
placement: eslintorg | ||
|
||
#------------------------------------------------------------------------------ | ||
# Shared | ||
#------------------------------------------------------------------------------ | ||
|
||
shared: | ||
get_started: Get Started | ||
become_a_sponsor: Become a Sponsor | ||
eslint_logo_alt: ESLint logo | ||
description: > | ||
A pluggable and configurable linter tool for identifying and reporting on | ||
patterns in JavaScript. Maintain your code quality with ease. | ||
title_format: PAGE_TITLE - ESLint - Pluggable JavaScript Linter | ||
skip_to_content: Skip to main content | ||
donate: Donate | ||
|
||
#------------------------------------------------------------------------------ | ||
# Navigation | ||
#------------------------------------------------------------------------------ | ||
|
||
navigation: | ||
- text: Team | ||
link: team | ||
- text: Blog | ||
link: blog | ||
- text: Docs | ||
link: docs | ||
- text: Store | ||
link: store | ||
target: _blank | ||
- text: Playground | ||
link: playground | ||
|
||
#------------------------------------------------------------------------------ | ||
# Footer | ||
#------------------------------------------------------------------------------ | ||
|
||
footer: | ||
title: Ready to fix your JavaScript code? | ||
description: Install from npm or start donating today. | ||
secondary: Secondary | ||
social_icons: | ||
title: Social Media | ||
twitter: Twitter | ||
chat: Discord | ||
mailing_list: Google Group | ||
github: GitHub | ||
theme_switcher: | ||
title: Theme Switcher | ||
light: Light | ||
dark: Dark | ||
language_switcher: | ||
title: Language Switcher | ||
description: Selecting a language will take you to the ESLint website in that language. | ||
change_language: Change Language | ||
language: Language | ||
copyright: > | ||
© OpenJS Foundation and ESLint contributors, <a href="https://www.openjsf.org">www.openjsf.org</a> | ||
links: | ||
open_jsf: The OpenJS Foundation | ||
terms: Terms of Use | ||
privacy: Privacy Policy | ||
bylaws: OpenJS Foundation Bylaws | ||
trademark: Trademark Policy | ||
trademark_list: Trademark List | ||
cookies: Cookie Policy | ||
|
||
#------------------------------------------------------------------------------ | ||
# 404 Page | ||
#------------------------------------------------------------------------------ | ||
|
||
404_page: | ||
title: 404 error | ||
subtitle: Page not found | ||
description: Sorry, the page you are looking for doesn't exist or has been moved. | ||
actions: | ||
back_to_home: Back to homepage | ||
browse_docs: Browse the docs |
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.