This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Sync with other sites * Fix lint error * Update src/_data/links.json Co-authored-by: Milos Djermanovic <[email protected]> * Update src/_includes/layouts/base.html Co-authored-by: Milos Djermanovic <[email protected]> * fix conflicts Co-authored-by: Milos Djermanovic <[email protected]>
- Loading branch information
1 parent
5f05cb9
commit ce3cf99
Showing
13 changed files
with
1,080 additions
and
1,580 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
Large diffs are not rendered by default.
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,22 @@ | ||
{ | ||
"github": "https://github.com/eslint/eslint", | ||
"twitter": "https://twitter.com/geteslint", | ||
"chat": "https://eslint.org/chat", | ||
"group": "https://groups.google.com/group/eslint", | ||
|
||
"blog": "/blog", | ||
"docs": "/docs/latest/", | ||
"playground": "/play", | ||
"getStarted": "/docs/latest/user-guide/getting-started", | ||
"sponsors": "/sponsors", | ||
"branding": "/branding", | ||
"store": "https://eslint.threadless.com", | ||
"team": "/team", | ||
|
||
"configuring": "https://eslint.org/docs/user-guide/configuring/", | ||
"fixProblems": "https://eslint.org/docs/user-guide/command-line-interface#fixing-problems", | ||
|
||
"donate": "/donate", | ||
"openCollective": "https://opencollective.com/eslint", | ||
"githubSponsors": "https://github.com/sponsors/eslint" | ||
} |
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,28 @@ | ||
/** | ||
* @fileoverview Convenience helper for site data. | ||
* @author Nicholas C. Zakas | ||
*/ | ||
|
||
"use strict"; | ||
|
||
//----------------------------------------------------------------------------- | ||
// 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
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,5 +1,5 @@ | ||
--- | ||
layout: base.njk | ||
layout: base.html | ||
--- | ||
|
||
{% include "partials/header.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!--<br>--> | ||
{% if site.google_analytics.code %} | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7DGPHY308T"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { dataLayer.push(arguments); } | ||
gtag('js', new Date()); | ||
|
||
gtag('config', '{{ site.google_analytics.code }}'); | ||
|
||
// track clicks to "Donate" | ||
document.querySelectorAll("a.donate-link").forEach( | ||
el => el.addEventListener("click", | ||
() => gtag("event", "donate_click")) | ||
); | ||
|
||
// track clicks on sponsor logos | ||
document.querySelectorAll("a.sponsor-link").forEach( | ||
el => el.addEventListener("click", | ||
() => gtag("event", "sponsor_click", el.href || "")) | ||
); | ||
</script> | ||
{% endif %} |
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