Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Sep 24, 2024
0 parents commit a328f0f
Show file tree
Hide file tree
Showing 40 changed files with 3,177 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
47 changes: 47 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# ----------------------------------------------------------------------------
# MDN Content CODEOWNERS
# ----------------------------------------------------------------------------
# Order is important. The last matching pattern takes precedence. For more
# detailed information, see:
# https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners
# ----------------------------------------------------------------------------

# ----------------------------------------------------------------------------
# DEFAULT OWNERS
# ----------------------------------------------------------------------------
* @mdn/core-dev

# ----------------------------------------------------------------------------
# DEFAULT CONTENT OWNER(S)
# ----------------------------------------------------------------------------
/files/ @mdn/core-yari-content

# ----------------------------------------------------------------------------
# GERMAN (de) CONTENT OWNER(S)
# ----------------------------------------------------------------------------
/files/de/ @mdn/yari-content-de

# ----------------------------------------------------------------------------
# TRANSLATION GUIDE OWNER(S)
# ----------------------------------------------------------------------------
/docs/ @mdn/core-yari-content
/docs/de/ @mdn/yari-content-de

# ----------------------------------------------------------------------------
# ISSUE TEMPLATE OWNER(S)
# ----------------------------------------------------------------------------
.github/ISSUE_TEMPLATE/page-report-de.yml @mdn/yari-content-de

# ----------------------------------------------------------------------------
# CONTROL FILES OWNER(S)
# ----------------------------------------------------------------------------
# These should be the last matches in this file, since any pull request that
# tries to change any one or more of these files should be escalated to the
# owners specified here.
# ----------------------------------------------------------------------------
/.github/ @mdn/core-dev
/* @mdn/core-dev
/*.md @mdn/core-dev @mdn/core-yari-content
/CONTRIBUTING.md @mdn/core-yari-content
/PEERS_GUIDELINES.md @mdn/core-yari-content
/.prettierignore
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Issue report"
description: Report an unexpected problem or unintended behavior.
labels: ["needs triage"]
body:
- type: markdown
attributes:
value: |
### Before you start
**Want to fix the problem yourself?** This project is open source and we welcome fixes and improvements from the community!
↩ Check the project [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) guide to see how to get started.
---
- type: textarea
id: problem
attributes:
label: What information was incorrect, unhelpful, or incomplete?
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to see?
validations:
required: true
- type: textarea
id: references
attributes:
label: Do you have any supporting links, references, or citations?
description: Link to information that helps us confirm your issue.
- type: textarea
id: more-info
attributes:
label: Do you have anything more you want to share?
description: For example, steps to reproduce, screenshots, screen recordings, or sample code.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: true
contact_links:
- name: Content or feature request
url: https://github.com/mdn/mdn/issues/new/choose
about: Propose new content for MDN Web Docs or submit a feature request using this link.
- name: MDN GitHub Discussions
url: https://github.com/orgs/mdn/discussions
about: Does the issue involve a lot of changes, or is it hard to split it into actionable tasks? Start a discussion before opening an issue.
- name: MDN Web Docs on Discourse
url: https://discourse.mozilla.org/c/mdn/learn/250
about: Need help with assessments on MDN Web Docs? We have a support community for this purpose on Discourse.
- name: Help with code
url: https://stackoverflow.com/
about: If you are stuck and need help with code, StackOverflow is a great resource.
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/content-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Content issue"
description: Report a problem with content on MDN.
labels: ["needs triage"]
body:
- type: markdown
attributes:
value: |
### Before you start
**Want to change a page yourself?** This content is open source!
↩ Look for the _Edit on GitHub_ link on any MDN page.
**Is your issue about a browser compatibility table?**
↩ Use the _Report problems with this compatibility data on GitHub_ link next to a compatibility table.
**Need help with a browser?**
🙋 To get help with [Firefox](https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla), [Chrome](https://support.google.com/chrome/answer/95315?ref_topic=7439544), [Safari](https://www.apple.com/feedback/safari.html), or another browser, check the browser's support site.
---
- type: input
id: mdn-url
attributes:
label: MDN URL
description: The link to the page this issue is about or, if it's about multiple pages, an example or most important page.
validations:
required: true
# -- BEGIN fields that correspond to `page-report.yml` —-
# If you edit these fields, edit them in both files!
- type: input
id: section
attributes:
label: What specific section or headline is this issue about?
- type: textarea
id: problem
attributes:
label: What information was incorrect, unhelpful, or incomplete?
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to see?
validations:
required: true
- type: textarea
id: references
attributes:
label: Do you have any supporting links, references, or citations?
description: Link to information that helps us confirm your issue.
- type: textarea
id: more-info
attributes:
label: Do you have anything more you want to share?
description: For example, steps to reproduce a bug, screenshots, screen recordings, or sample code
# -- END fields that correspond to `page-report.yml` --
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/page-report-de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "[über MDN-Seiten // de]"
description: Problem gemeldet über den Link "Report a problem with this content on GitHub" auf MDN-Seiten.
labels: ["l10n-de", "needs triage"]
body:
- type: markdown
attributes:
value: |
### Bevor du anfängst
**Möchtest du diese Seite selbst ändern?** Dieser Inhalt ist Open Source!
↩ Geh zurück und nutze den _Edit on GitHub_-Link auf der Seite.
**Geht dein Problem um die Kompatibilitätstabelle für Browser?**
↩ Geh zurück und nutze den _Report problems with this compatibility data on GitHub_-Link auf der Seite.
**Brauchst du Hilfe mit einem Browser?**
🙋 Um Hilfe mit [Firefox](https://support.mozilla.org/de/kb/mozilla-bug-report-oder-feature-request-erstellen), [Chrome](https://support.google.com/chrome/answer/95315?ref_topic=7439544), [Safari](https://www.apple.com/feedback/safari.html) oder einem anderen Browser zu bekommen, schau auf der Support-Seite des Browsers nach.
---
- type: input
id: mdn-url
attributes:
label: MDN-URL
description: Wird automatisch gesetzt. Nicht ändern.
validations:
required: true
# -- BEGIN Felder, die `content-bug.yml` entsprechen —
# Wenn du diese Felder bearbeitest, bearbeite sie in beiden Dateien!
- type: input
id: section
attributes:
label: Um welchen spezifischen Abschnitt oder welche Überschrift geht es bei diesem Problem?
- type: textarea
id: problem
attributes:
label: Welche Informationen waren falsch, unhilfreich oder unvollständig?
validations:
required: true
- type: textarea
id: expected
attributes:
label: Was hast du erwartet zu sehen?
validations:
required: true
- type: textarea
id: references
attributes:
label: Hast du irgendwelche unterstützenden Links, Referenzen oder Zitate?
description: Verlinke Informationen, die uns helfen, dein Problem zu bestätigen.
- type: textarea
id: more-info
attributes:
label: Hast du noch etwas, das du teilen möchtest?
description: Zum Beispiel Schritte zur Reproduktion eines Fehlers, Screenshots, Bildschirmaufnahmen oder Beispielcode
# -- ENDE Felder, die `content-bug.yml` entsprechen —
- type: markdown
attributes:
value: |
---
Du bist fertig! Die folgenden Felder sind vorausgefüllt. Bitte klicke auf **Submit new issue**.
- type: textarea
id: metadata
attributes:
label: MDN-Metadaten
description: Wird automatisch gesetzt. Nicht ändern.
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/page-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "[via MDN pages only]"
description: Issue filed via "Report a problem with this content on GitHub" link on MDN pages.
labels: ["via page report", "needs triage"]
body:
- type: markdown
attributes:
value: |
### Before you start
**Want to change this page yourself?** This content is open source!
↩ Go back and use the _Edit on GitHub_ link on the page.
**Is your issue about the browser compatibility table?**
↩ Go back and use the _Report problems with this compatibility data on GitHub_ link on the page.
**Need help with a browser?**
🙋 To get help with [Firefox](https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla), [Chrome](https://support.google.com/chrome/answer/95315?ref_topic=7439544), [Safari](https://www.apple.com/feedback/safari.html), or another browser, check the browser's support site.
---
- type: input
id: mdn-url
attributes:
label: MDN URL
description: Set automatically. Do not modify.
validations:
required: true
# -- BEGIN fields that correspond to `content-bug.yml` —-
# If you edit these fields, edit them in both files!
- type: input
id: section
attributes:
label: What specific section or headline is this issue about?
- type: textarea
id: problem
attributes:
label: What information was incorrect, unhelpful, or incomplete?
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to see?
validations:
required: true
- type: textarea
id: references
attributes:
label: Do you have any supporting links, references, or citations?
description: Link to information that helps us confirm your issue.
- type: textarea
id: more-info
attributes:
label: Do you have anything more you want to share?
description: For example, steps to reproduce a bug, screenshots, screen recordings, or sample code
# -- END fields that correspond to `content-bug.yml` —-
- type: markdown
attributes:
value: |
---
You're finished! The following fields are prefilled. Please click **Submit new issue**.
- type: textarea
id: metadata
attributes:
label: MDN metadata
description: Set automatically. Do not modify.
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- 🙌 Thanks for contributing to MDN Web Docs. Adding details below will help us to merge your PR faster. -->

### Description

<!-- ✍️ Summarize your changes in one or two sentences -->

### Motivation

<!-- ❓ Why are you making these changes and how do they help readers? -->

### Additional details

<!-- 🔗 Link to release notes, vendor docs, bug trackers, source control, or other places providing more context -->

### Related issues and pull requests

<!-- 🔨 If this fully resolves a GitHub issue, use "Fixes #123" -->
<!-- 👉 Highlight related pull requests using "Relates to #123" -->
<!-- ❗ If another pull request should be merged first, use "**Depends on:** #123" -->

<!-- 👷‍♀️ After submitting, go to the "Checks" tab of your PR for the build status -->
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is used by .github/workflows/pr-labeler.yml to label pull requests based on the files changed in the PR.
# Object matching syntax: https://github.com/actions/labeler/blob/main/README.md#match-object

system:
- changed-files:
- any-glob-to-any-file:
- package.json
- yarn.lock
- .github/**
- .husky/**
- .vscode/**
- .*
- front-matter-config.json

l10n-de:
- changed-files:
- any-glob-to-any-file:
- files/de/**
- docs/de/**
- .github/ISSUE_TEMPLATE/page-report-de.yml
16 changes: 16 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: auto-merge

on:
pull_request_target:

jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
command: "squash and merge"
approve: true
target: minor
Loading

0 comments on commit a328f0f

Please sign in to comment.