1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Tidy up gitignore, prettierignore, dockerignore (#57403)

This commit is contained in:
Kevin Heis
2025-09-04 12:46:50 -07:00
committed by GitHub
parent 53f2b046c1
commit 7d645907d2
5 changed files with 114 additions and 68 deletions

View File

@@ -4,8 +4,7 @@
.vscode/ .vscode/
contributing/ contributing/
docs/ docs/
node_modules/
tests/
# Folder is cloned during the Dockerfile build
docs-early-access/ docs-early-access/
node_modules/
README.md README.md
tests/

4
.github/CODEOWNERS vendored
View File

@@ -4,10 +4,10 @@
# https://git-scm.com/docs/gitignore # https://git-scm.com/docs/gitignore
# Site Policy # Site Policy
/content/site-policy/ @github/site-policy-admins content/site-policy/ @github/site-policy-admins
# Enterprise # Enterprise
/data/release-notes/**/*.yml @github/docs-content-enterprise data/release-notes/**/*.yml @github/docs-content-enterprise
src/ghes-releases/lib/enterprise-dates.json @github/docs-content-enterprise src/ghes-releases/lib/enterprise-dates.json @github/docs-content-enterprise
# Requires review of #actions-oidc-integration, docs-engineering/issues/1506 # Requires review of #actions-oidc-integration, docs-engineering/issues/1506

145
.gitignore vendored
View File

@@ -1,58 +1,113 @@
.search-cache # Test coverage reports
.coverage/
# macOS system files
.DS_Store .DS_Store
# Environment variables (contains secrets)
.env .env
.vscode/settings.json
.idea/ # ESLint cache for faster linting
/node_modules/
npm-debug.log
coverage/
/assets/images/early-access
/content/early-access
/data/early-access
/src/dev-toc/static
.next
.eslintcache .eslintcache
*.tsbuildinfo
/translations/
.node-version
.linkinator/full.log
next-env.d.ts
nohup.out
# blc: broken link checker # JetBrains IDE files
blc_output.log .idea/
blc_output_internal.log
broken_links.md
# This one is purely for historical reasons because so many people might
# still have these files on their disk.
lib/redirects/.redirects-cache*.json
# Logs from scripts
*/logs/
external-link-checker-db.json
# Playwright related
/test-results/
/playwright-report/
/playwright/.cache/
# Automated content source
rest-api-description
semmle-code
models-gateway
# Tracks package-lock.json installation state
.installed.package-lock.json .installed.package-lock.json
assets/images/help/writing/unordered-list-rendered (1).png
# Used by getRemoteJSON() # Linkinator full site link check results
.remotejson-cache/ .linkinator/
# Used by precompute-pageinfo # Next.js build output
.next/
# Node.js version specification
.node-version
# Precomputed page info cache (brotli compressed)
.pageinfo-cache.json.br .pageinfo-cache.json.br
# Cloned and used for indexing Elasticsearch data # getRemoteJSON() disk cache for archived content
.remotejson-cache/
# VS Code workspace settings
.vscode/settings.json
# TypeScript incremental build info
*.tsbuildinfo
# Early access images from docs-early-access repo
assets/images/early-access/
# Accidentally committed file that should be ignored
assets/images/help/writing/unordered-list-rendered (1).png
# Old broken link checker output
blc_output.log
# Old internal broken link checker output
blc_output_internal.log
# Old broken links report
broken_links.md
# Early access content from docs-early-access repo
content/early-access/
# Test coverage reports
coverage/
# Early access data from docs-early-access repo
data/early-access/
# Cloned for Elasticsearch indexing data
docs-internal-data/ docs-internal-data/
# For intermediate data (like scraping for Elasticsearch indexing) # External link checker cache database
external-link-checker-db.json
# Historical redirects cache (legacy)
lib/redirects/.redirects-cache*.json
# Script execution logs
logs/
# GitHub Models API descriptions
models-gateway/
# Next.js TypeScript environment definitions
next-env.d.ts
# Node.js dependencies
node_modules/
# Background process output
nohup.out
# NPM debug logs
npm-debug.log
# Playwright test reports
playwright-report/
# Playwright browser cache
playwright/.cache/
# REST API OpenAPI descriptions
rest-api-description/
# CodeQL CLI documentation source
semmle-code/
# Development table of contents static HTML files
src/dev-toc/static/
# Playwright test result artifacts
test-results/
# Temporary data files
tmp/ tmp/
# Localized content from translation repositories
translations/

View File

@@ -1,10 +1,2 @@
data/release-notes/ data/release-notes/
src/bookmarklets/ src/bookmarklets/
/.next/
/.coverage
/coverage
# Automated content source
rest-api-description
semmle-code

View File

@@ -53,9 +53,9 @@ RUN --mount=type=secret,id=DOCS_BOT_PAT_BASE,mode=0444 \
echo "Don't cache this step by printing date: $(date)" && \ echo "Don't cache this step by printing date: $(date)" && \
. ./build-scripts/fetch-repos.sh . ./build-scripts/fetch-repos.sh
# ----------------------------------------- # ------------------------------------------------
# PROD_DEPS STAGE: Install production dependencies # PROD_DEPS STAGE: Install production dependencies
# ----------------------------------------- # ------------------------------------------------
FROM base AS prod_deps FROM base AS prod_deps
USER node:node USER node:node
WORKDIR $APP_HOME WORKDIR $APP_HOME
@@ -66,17 +66,17 @@ COPY --chown=node:node package.json package-lock.json ./
# Install only production dependencies (skip scripts to avoid husky) # Install only production dependencies (skip scripts to avoid husky)
RUN npm ci --omit=dev --ignore-scripts --registry https://registry.npmjs.org/ RUN npm ci --omit=dev --ignore-scripts --registry https://registry.npmjs.org/
# ----------------------------------------- # ------------------------------------------------------------
# ALL_DEPS STAGE: Install all dependencies on top of prod deps # ALL_DEPS STAGE: Install all dependencies on top of prod deps
# ----------------------------------------- # ------------------------------------------------------------
FROM prod_deps AS all_deps FROM prod_deps AS all_deps
# Install dev dependencies on top of production ones # Install dev dependencies on top of production ones
RUN npm ci --registry https://registry.npmjs.org/ RUN npm ci --registry https://registry.npmjs.org/
# ----------------------------------------- # ----------------------------------
# BUILD STAGE: Build the application # BUILD STAGE: Build the application
# ----------------------------------------- # ----------------------------------
FROM base AS build FROM base AS build
USER node:node USER node:node
WORKDIR $APP_HOME WORKDIR $APP_HOME
@@ -99,17 +99,17 @@ COPY --chown=node:node --from=all_deps $APP_HOME/node_modules node_modules/
# Build the application # Build the application
RUN npm run build RUN npm run build
# ----------------------------------------- # ---------------------------------------------
# WARMUP_CACHE STAGE: Warm up remote JSON cache # WARMUP_CACHE STAGE: Warm up remote JSON cache
# ----------------------------------------- # ---------------------------------------------
FROM build AS warmup_cache FROM build AS warmup_cache
# Generate remote JSON cache # Generate remote JSON cache
RUN npm run warmup-remotejson RUN npm run warmup-remotejson
# ----------------------------------------- # --------------------------------------
# PRECOMPUTE STAGE: Precompute page info # PRECOMPUTE STAGE: Precompute page info
# ----------------------------------------- # --------------------------------------
FROM build AS precompute_stage FROM build AS precompute_stage
# Generate precomputed page info # Generate precomputed page info