diff --git a/.github/workflows/index-autocomplete-search.yml b/.github/workflows/index-autocomplete-search.yml
index 8d116a66ca5f..09375d0e7b0a 100644
--- a/.github/workflows/index-autocomplete-search.yml
+++ b/.github/workflows/index-autocomplete-search.yml
@@ -1,7 +1,7 @@
name: Index autocomplete search in Elasticsearch
-# **What it does**: Indexes autocomplete data (general and AI search) into Elasticsearch.
-# **Why we have it**: So we can power the APIs for autocomplete.
+# **What it does**: Indexes AI search autocomplete data into Elasticsearch.
+# **Why we have it**: So we can power the APIs for AI search autocomplete.
# **Who does it impact**: docs-engineering
on:
@@ -40,11 +40,6 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
run: curl --fail --retry-connrefused --retry 5 -I http://localhost:9200
- - name: Run general auto-complete indexing
- env:
- ELASTICSEARCH_URL: ${{ github.event_name == 'pull_request' && 'http://localhost:9200' || secrets.ELASTICSEARCH_URL }}
- run: npm run index-general-autocomplete -- docs-internal-data
-
- name: Run AI search auto-complete indexing
env:
ELASTICSEARCH_URL: ${{ github.event_name == 'pull_request' && 'http://localhost:9200' || secrets.ELASTICSEARCH_URL }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 548f7fd56939..716bfff8a4a9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -75,7 +75,6 @@ jobs:
- shielding
# - tests
# - tools
- - tracking
- versions
- webhooks
- workflows
diff --git a/content/billing/managing-your-billing/about-usage-reports.md b/content/billing/managing-your-billing/about-usage-reports.md
new file mode 100644
index 000000000000..a1cdab9a49cc
--- /dev/null
+++ b/content/billing/managing-your-billing/about-usage-reports.md
@@ -0,0 +1,54 @@
+---
+title: About usage reports
+intro: 'Learn how to request and understand a report that shows detailed {% data variables.product.github %} usage and billing information for your account.'
+versions:
+ feature: enhanced-billing-platform
+type: how_to
+topics:
+ - Enterprise
+ - Team
+permissions: '{% data reusables.permissions.enhanced-billing-platform %}'
+product: '{% data reusables.billing.enhanced-billing-platform-product %}'
+---
+
+The usage report shows detailed information about your account’s {% data variables.product.github %} usage, including how much of each SKU was used and the resulting billable amount.
+
+To generate a usage report, see [AUTOTITLE](/billing/managing-your-billing/gathering-insights-on-your-spending).
+
+## Usage report fields
+
+The usage report contains the following fields.
+
+| Field | Description |
+|---------------------------|-------------|
+| `date` | The day that the usage occurred. All usage is logged in UTC. |
+| `product` | The {% data variables.product.github %} product that was used. |
+| `sku` | The specific {% data variables.product.github %} product SKU that was used. |
+| `quantity` | The amount of the SKU that was used. |
+| `unit_type` | The unit of measurement for the product SKU. |
+| `applied_cost_per_quantity` | The unit cost of the product SKU. |
+| `gross_amount` | The amount of the product SKU that was used. |
+| `discount_amount` | The amount of usage that was discounted. Usage that is discounted as part of your account’s included usage is reflected in this field. Also includes discounts for {% data variables.product.prodname_actions %} usage for standard {% data variables.product.github %}-hosted runners in public repositories and for self-hosted runners. |
+| `net_amount` | The billable amount of usage after applying the `discount_amount`. This is the amount that your account will be billed. `gross_amount - discount_amount = net_amount`. |
+| `username` | The user associated with the usage, if applicable. |
+| `organization` | The organization associated with the usage, if applicable. |
+| `repository` | The repository associated with the usage, if applicable. |
+| `workflow_path` | The path of the {% data variables.product.prodname_actions %} workflow that generated the usage, if applicable. |
+| `cost_center_name` | The cost center associated with the usage, if applicable. |
+
+### Deprecated report fields
+
+{% data variables.product.github %} aims to minimize changes to the usage report structure, however at times the report structure or fields may change.
+
+| Deprecated field | Replacement |
+|--------------------|---------------------|
+| `usage_at` | Refer to `date` instead. |
+| `workflow_name` | Refer to `workflow_path` instead. |
+
+## How usage is summarized
+
+To reduce the size of the report, similar usage entries are grouped and totaled. The report summarizes the `quantity`, `gross_amount`, `discount_amount`, and `net_amount` fields based on the combination of the following values: `date`, `sku`, `username`, `workflow_path`, `repository`, `cost_center_name`.
+
+## Receiving the report
+
+Usage reports are sent via email to the default email address associated with your {% data variables.product.github %} account.
diff --git a/content/billing/managing-your-billing/index.md b/content/billing/managing-your-billing/index.md
index cdad208c2020..d2e798a69e92 100644
--- a/content/billing/managing-your-billing/index.md
+++ b/content/billing/managing-your-billing/index.md
@@ -19,6 +19,7 @@ children:
- /adding-licenses-to-an-organization
- /roles-for-the-new-billing-platform
- /estimating-spending
+ - /about-usage-reports
- /gathering-insights-on-your-spending
- /charging-business-units
- /preventing-overspending
diff --git a/content/copilot/using-github-copilot/code-review/using-copilot-code-review.md b/content/copilot/using-github-copilot/code-review/using-copilot-code-review.md
index a815ae71404a..cf555509794d 100644
--- a/content/copilot/using-github-copilot/code-review/using-copilot-code-review.md
+++ b/content/copilot/using-github-copilot/code-review/using-copilot-code-review.md
@@ -28,13 +28,13 @@ The current functionality and availability of the two types of review is summari
{% rowheaders %}
-| | Review selection | Review changes |
-|------------------|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| Available in | {% data variables.product.prodname_vscode %} | {% data variables.product.prodname_vscode %} and the {% data variables.product.github %} website |
+| | Review selection | Review changes |
+|------------------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| Available in | {% data variables.product.prodname_vscode %} | {% data variables.product.prodname_vscode %} and the {% data variables.product.github %} website |
| Premium/standard feature | Standard feature available to all {% data variables.product.prodname_copilot_short %} subscribers | Premium feature. Available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans. Per-person monthly quota applies. |
-| Description | Initial review of a highlighted section of code with feedback and suggestions | Deeper review of all changes |
-| Language support | All | C, C#, C++, Go, Java, JavaScript, Kotlin, Markdown, Python, Ruby, Swift, TypeScript
{% data variables.release-phases.public_preview_caps %} support for HTML and Text. |
-| Custom coding guidelines support | No | Yes, see [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with coding guidelines](#customizing-copilots-reviews-with-coding-guidelines) |
+| Description | Initial review of a highlighted section of code with feedback and suggestions | Deeper review of all changes |
+| Language support | All | All |
+| Custom coding guidelines support | No | Yes, see [Customizing {% data variables.product.prodname_copilot_short %}'s reviews with coding guidelines](#customizing-copilots-reviews-with-coding-guidelines) |
{% endrowheaders %}
diff --git a/data/reusables/copilot/policies-for-dotcom.md b/data/reusables/copilot/policies-for-dotcom.md
index 89beb382a92d..ae2e4cf35077 100644
--- a/data/reusables/copilot/policies-for-dotcom.md
+++ b/data/reusables/copilot/policies-for-dotcom.md
@@ -1,5 +1,2 @@
* **Opt in to user feedback collection:** If enabled, users can provide feedback on {% data variables.product.prodname_copilot_short %} pull request summaries. For more information, see [AUTOTITLE](/enterprise-cloud@latest/copilot/github-copilot-enterprise/copilot-pull-request-summaries/creating-a-pull-request-summary-with-github-copilot).
-* **Opt in to preview features:** If enabled, users can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features include:
-
- * Experimental languages in {% data variables.product.prodname_copilot_short %} code review. See [AUTOTITLE](/copilot/using-github-copilot/code-review/using-copilot-code-review).
- * {% data variables.copilot.copilot_spaces %}. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces).
+* **Opt in to preview features:** If enabled, users can test new {% data variables.product.prodname_copilot_short %} features that are not yet generally available. Be aware that previews of features may have flaws, and the features may be changed or discontinued at any time. Current previews of {% data variables.product.prodname_copilot_short %} features include {% data variables.copilot.copilot_spaces %}. See [AUTOTITLE](/copilot/using-github-copilot/copilot-spaces/about-organizing-and-sharing-context-with-copilot-spaces).
diff --git a/data/ui.yml b/data/ui.yml
index e4e48a60ca46..d5e6fa9dea6b 100644
--- a/data/ui.yml
+++ b/data/ui.yml
@@ -25,7 +25,6 @@ release_notes:
banner_text: GitHub began rolling these changes out to enterprises on
search:
input:
- aria_label: Open search overlay
placeholder: Search or ask {{icon}} Copilot
placeholder_no_icon: Search or ask Copilot
shortcut: Type {{icon}} to search
@@ -320,17 +319,7 @@ alerts:
WARNING: Warning
TIP: Tip
CAUTION: Caution
-domain_edit:
- name: Domain name
- edit: Edit
- edit_your: Edit your domain name
- experimental: Experimental
- your_name: Your domain name
- cancel: Cancel
- save: Save
- snippet_about: Updating will include the new domain name in all code snippets across GitHub Docs.
- learn_more: Learn more
- submission_failed: Submission failed. Please try again in a minute.
+
cookbook_landing:
spotlight: Spotlight
explore_articles: Explore {{ number }} prompt articles
diff --git a/package.json b/package.json
index ce09ea6255aa..bdb8eda6b9d6 100644
--- a/package.json
+++ b/package.json
@@ -49,9 +49,7 @@
"general-search-scrape-server": "cross-env NODE_ENV=production PORT=4002 MINIMAL_RENDER=true CHANGELOG_DISABLED=true tsx src/frame/server.ts",
"ghes-release-scrape-with-server": "cross-env GHES_RELEASE=1 start-server-and-test general-search-scrape-server 4002 general-search-scrape",
"general-search-scrape-with-server": "cross-env NODE_OPTIONS='--max_old_space_size=8192' start-server-and-test general-search-scrape-server 4002 general-search-scrape",
- "index": "tsx src/search/scripts/index/index-cli autocomplete docs-internal-data",
"index-ai-search-autocomplete": "tsx src/search/scripts/index/index-cli ai-search-autocomplete",
- "index-general-autocomplete": "tsx src/search/scripts/index/index-cli general-autocomplete",
"index-general-search": "tsx src/search/scripts/index/index-cli general-search",
"index-test-fixtures": "./src/search/scripts/index-test-fixtures.sh",
"labeler": "tsx .github/actions/labeler/labeler.ts",
diff --git a/src/content-render/unified/processor.js b/src/content-render/unified/processor.js
index 0f0c565270d1..62674a283c7a 100644
--- a/src/content-render/unified/processor.js
+++ b/src/content-render/unified/processor.js
@@ -27,7 +27,6 @@ import wrapProceduralImages from './wrap-procedural-images.js'
import parseInfoString from './parse-info-string.js'
import annotate from './annotate.js'
import alerts from './alerts.js'
-import replaceDomain from './replace-domain.js'
import removeHtmlComments from 'remark-remove-comments'
import remarkStringify from 'remark-stringify'
@@ -49,7 +48,6 @@ export function createProcessor(context) {
.use(headingLinks)
.use(codeHeader)
.use(annotate)
- .use(replaceDomain)
.use(highlight, {
languages: { ...common, graphql, dockerfile, http, groovy, erb, powershell },
subset: false,
diff --git a/src/content-render/unified/replace-domain.js b/src/content-render/unified/replace-domain.js
deleted file mode 100644
index 21f224be25ac..000000000000
--- a/src/content-render/unified/replace-domain.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * This makes it so that the `github.com` or `HOSTNAME` in a code snippet
- * becomes replacable.
- */
-
-import { visit } from 'unist-util-visit'
-
-// Don't use `g` on these regexes
-const VALID_REPLACEMENTS = [[/\bHOSTNAME\b/, 'HOSTNAME']]
-
-const CODE_FENCE_KEYWORD = 'replacedomain'
-
-const matcher = (node) => {
- return (
- node.type === 'element' &&
- node.tagName === 'pre' &&
- node.children[0]?.data?.meta[CODE_FENCE_KEYWORD]
- )
-}
-
-export default function alerts() {
- return (tree) => {
- visit(tree, matcher, (node) => {
- const code = node.children[0].children[0].value
- for (const [regex, replacement] of VALID_REPLACEMENTS) {
- if (regex.test(code)) {
- const codeTag = node.children[0]
- const replacements = codeTag.properties['data-replacedomain'] || []
- if (!replacements.includes(replacement)) {
- replacements.push(replacement)
- codeTag.properties['data-replacedomain'] = replacements
- }
- }
- }
- })
- }
-}
diff --git a/src/fixtures/fixtures/content/get-started/markdown/index.md b/src/fixtures/fixtures/content/get-started/markdown/index.md
index 6fe218b5e7c9..6e88f4d2485f 100644
--- a/src/fixtures/fixtures/content/get-started/markdown/index.md
+++ b/src/fixtures/fixtures/content/get-started/markdown/index.md
@@ -10,6 +10,5 @@ children:
- /permissions
- /code-annotations
- /alerts
- - /replace-domain
- /html-comments
---
diff --git a/src/fixtures/fixtures/content/get-started/markdown/replace-domain.md b/src/fixtures/fixtures/content/get-started/markdown/replace-domain.md
deleted file mode 100644
index 8bba2655fb21..000000000000
--- a/src/fixtures/fixtures/content/get-started/markdown/replace-domain.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: Replace domain
-intro: This demonstrates code snippets that have host names that can be replaced.
-versions:
- fpt: '*'
- ghes: '*'
- ghec: '*'
-type: how_to
----
-
-## Overview
-
-If you have an article with code snippets that have the `replacedomain`
-annotation on its code fence, that means the page *might* take the current
-user's cookie (indicating their personal hostname) and replace that within
-the code snippet.
-
-## Shell code snippet (on)
-
-```sh replacedomain
-curl https://HOSTNAME/api/v1
-```
-
-## Shell code snippet (off)
-
-```sh
-curl https://HOSTNAME/api/v2
-```
-
-## JavaScript code snippet (on)
-
-```js replacedomain
-await fetch("https://HOSTNAME/api/v1")
-```
-
-## JavaScript code snippet (off)
-
-```js
-await fetch("https://HOSTNAME/api/v2")
-```
-
-## Not always there
-
-In this next code snippet, the `HOSTNAME` only appears if the current
-version is `ghes`. That should be fine.
-
-```text replacedomain copy
-ssh handle@{% ifversion ghes %}HOSTNAME{% else %}github.com{% endif %}
-```
diff --git a/src/fixtures/fixtures/data/ui.yml b/src/fixtures/fixtures/data/ui.yml
index e4e48a60ca46..d5e6fa9dea6b 100644
--- a/src/fixtures/fixtures/data/ui.yml
+++ b/src/fixtures/fixtures/data/ui.yml
@@ -25,7 +25,6 @@ release_notes:
banner_text: GitHub began rolling these changes out to enterprises on
search:
input:
- aria_label: Open search overlay
placeholder: Search or ask {{icon}} Copilot
placeholder_no_icon: Search or ask Copilot
shortcut: Type {{icon}} to search
@@ -320,17 +319,7 @@ alerts:
WARNING: Warning
TIP: Tip
CAUTION: Caution
-domain_edit:
- name: Domain name
- edit: Edit
- edit_your: Edit your domain name
- experimental: Experimental
- your_name: Your domain name
- cancel: Cancel
- save: Save
- snippet_about: Updating will include the new domain name in all code snippets across GitHub Docs.
- learn_more: Learn more
- submission_failed: Submission failed. Please try again in a minute.
+
cookbook_landing:
spotlight: Spotlight
explore_articles: Explore {{ number }} prompt articles
diff --git a/src/fixtures/tests/playwright-rendering.spec.ts b/src/fixtures/tests/playwright-rendering.spec.ts
index 3c1c30957a17..660869fd07bd 100644
--- a/src/fixtures/tests/playwright-rendering.spec.ts
+++ b/src/fixtures/tests/playwright-rendering.spec.ts
@@ -844,35 +844,3 @@ test.describe('translations', () => {
await expect(page).toHaveURL('/ja/get-started/start-your-journey/hello-world')
})
})
-
-test.describe('view pages with custom domain cookie', () => {
- test('view article page', async ({ page }) => {
- await page.goto(
- '/enterprise-server@latest/get-started/markdown/replace-domain?ghdomain=example.ghe.com',
- )
-
- const content = page.locator('pre')
- await expect(content.nth(0)).toHaveText(/curl https:\/\/example.ghe.com\/api\/v1/)
- await expect(content.nth(1)).toHaveText(/curl https:\/\/HOSTNAME\/api\/v2/)
- await expect(content.nth(2)).toHaveText('await fetch("https://example.ghe.com/api/v1")')
- await expect(content.nth(3)).toHaveText('await fetch("https://HOSTNAME/api/v2")')
-
- // Now switch to enterprise-cloud, where replacedomain should not be used
- await page.getByLabel('Select GitHub product version').click()
- await page.getByLabel('Enterprise Cloud', { exact: true }).click()
-
- await expect(content.nth(0)).toHaveText(/curl https:\/\/HOSTNAME\/api\/v1/)
- await expect(content.nth(1)).toHaveText(/curl https:\/\/HOSTNAME\/api\/v2/)
- await expect(content.nth(2)).toHaveText('await fetch("https://HOSTNAME/api/v1")')
- await expect(content.nth(3)).toHaveText('await fetch("https://HOSTNAME/api/v2")')
-
- // Again switch back to enterprise server again
- await page.getByLabel('Select GitHub product version').click()
- await page.getByLabel('Enterprise Server 3.').first().click()
-
- await expect(content.nth(0)).toHaveText(/curl https:\/\/example.ghe.com\/api\/v1/)
- await expect(content.nth(1)).toHaveText(/curl https:\/\/HOSTNAME\/api\/v2/)
- await expect(content.nth(2)).toHaveText('await fetch("https://example.ghe.com/api/v1")')
- await expect(content.nth(3)).toHaveText('await fetch("https://HOSTNAME/api/v2")')
- })
-})
diff --git a/src/frame/components/DefaultLayout.tsx b/src/frame/components/DefaultLayout.tsx
index 4142e923de62..69f8db09638e 100644
--- a/src/frame/components/DefaultLayout.tsx
+++ b/src/frame/components/DefaultLayout.tsx
@@ -13,7 +13,6 @@ import { useTranslation } from '@/languages/components/useTranslation'
import { Breadcrumbs } from '@/frame/components/page-header/Breadcrumbs'
import { useLanguages } from '@/languages/components/LanguagesContext'
import { ClientSideLanguageRedirect } from './ClientSideLanguageRedirect'
-import { DomainNameEditProvider } from '@/links/components/useEditableDomainContext'
import { SearchOverlayContextProvider } from '@/search/components/context/SearchOverlayContext'
const MINIMAL_RENDER = Boolean(JSON.parse(process.env.MINIMAL_RENDER || 'false'))
@@ -76,99 +75,97 @@ export const DefaultLayout = (props: Props) => {
}
return (
-
-
-
- {error === '404' ? (
- {t('oops')}
- ) : (!isHomepageVersion && page.fullTitle) ||
- (currentPathWithoutLanguage.includes('enterprise-server') && page.fullTitle) ? (
- {page.fullTitle}
- ) : null}
-
- {/* For Google and Bots */}
-
- {page.hidden && }
- {Object.values(languages)
- .filter((lang) => lang.code !== router.locale)
- .map((variant) => {
- return (
-
- )
- })}
-
- {/* For local site search indexing */}
- {page.topics.length > 0 && }
-
- {/* For analytics events */}
- {router.locale && }
- {currentVersion && }
- {currentProduct && }
- {relativePath && (
-
- )}
- {page.type && }
- {page.documentType && }
- {status && }
-
- {/* OpenGraph data */}
- {page.fullTitle && (
- <>
-
-
-
-
-
- >
- )}
- {/* Twitter Meta Tags */}
-
-
-
-
- {page.introPlainText && }
-
-
-
- Skip to main content
-
-
-
-
- {isHomepageVersion ? null : }
- {/* Need to set an explicit height for sticky elements since we also
- set overflow to auto */}
-
- {open && (
-
- )}
-
- {/* Deliberately commented out until we decide to include this on all pages */}
- {/* setOpen(true)}
- returnFocusRef={returnFocusRef}
- /> */}
-