1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Merge pull request #28514 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2023-09-26 12:30:23 -07:00
committed by GitHub
6 changed files with 59 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

View File

@@ -18,6 +18,7 @@ topics:
children:
- /githubs-plans
- /about-versions-of-github-docs
- /using-hover-cards-on-github-docs
- /github-language-support
- /types-of-github-accounts
- /access-permissions-on-github

View File

@@ -0,0 +1,24 @@
---
title: Using hover cards on GitHub Docs
intro: 'Hover cards give you information about other articles on {% data variables.product.prodname_docs %}.'
versions:
fpt: '*'
ghes: '*'
ghae: '*'
ghec: '*'
shortTitle: Hover cards on Docs
---
## About hover cards
When you're reading an article on {% data variables.product.prodname_docs %} and find a link to another article, you can open a hover card to get more information about the article. The hover card provides basic information about the article, so you can determine whether it will be useful to you without leaving the article you're reading.
If you navigate {% data variables.product.prodname_docs %} with a mouse, the hover card is displayed when you hover the cursor over a link.
![Screenshot of part of an article on {% data variables.product.prodname_docs %}. A cursor hovers over a link to an article called "Create a repo," and a hover card displays the article's location, title, and introduction.](/assets/images/help/docs/hover-card.png)
## Using hover cards with a keyboard
When you have placed focus on a link to an article, you can press <kbd>Enter</kbd> to follow the link directly, or you can press <kbd>Alt</kbd>+<kbd>↑</kbd> (Windows/Linux) or <kbd>Option</kbd>+<kbd>↑</kbd> (Mac) to open the hover card.
With the hover card open, you can press <kbd>Enter</kbd> to follow the link, or you can press <kbd>Esc</kbd> to close the hover card.

View File

@@ -2,7 +2,10 @@ When a concurrent job or workflow is queued, if another job or workflow using th
{% note %}
**Note:** The concurrency group name is case insensitive. For example, `prod` and `Prod` will be treated as the same concurrency group.
**Notes:**
- The concurrency group name is case insensitive. For example, `prod` and `Prod` will be treated as the same concurrency group.
- Ordering is not guaranteed for jobs or runs using concurrency groups, they are handled in the order that they are processed.
{% endnote %}

View File

@@ -1,9 +1,3 @@
{% note %}
**Note:** When concurrency is specified at the job level, order is not guaranteed for jobs or runs that queue within 5 minutes of each other.
{% endnote %}
You can use `jobs.<job_id>.concurrency` to ensure that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. Allowed expression contexts: [`github`](/actions/learn-github-actions/contexts#github-context), [`inputs`](/actions/learn-github-actions/contexts#inputs-context), [`vars`](/actions/learn-github-actions/contexts#vars-context), [`needs`](/actions/learn-github-actions/contexts#needs-context), [`strategy`](/actions/learn-github-actions/contexts#strategy-context), and [`matrix`](/actions/learn-github-actions/contexts#matrix-context). For more information about expressions, see "[AUTOTITLE](/actions/learn-github-actions/expressions)."
You can also specify `concurrency` at the workflow level. For more information, see [`concurrency`](/actions/using-workflows/workflow-syntax-for-github-actions#concurrency).

View File

@@ -83,6 +83,22 @@ const pageinfoMiddleware = (req, res, next) => {
return next()
}
// THIS IS AN EXPERIMENT. THIS CODE WILL BE DELETED IN THE NEAR FUTURE.
// The cache-control headers (and surrogate-control) are set to be
// aggressive. That means that in theory, after a deployment, when Fastly
// has been purged accordingly, the next time a pageinfo is requested,
// it'll come here to the backend code and produce the JSON response,
// and once it's done it once, it won't be needed again, because,
// in theory, the CDN will have cached it.
// But pageinfo requests are very frequent. So frequent that sometimes,
// the delay of CDN is longer than the chance of it being requested again
// from the backend. This can possibly still happen even with a origin
// shield.
// In this experiment we want to measure how often this happens.
// We are going to test how often the CDN requests the *same* pageinfo from the
// backend.
const CACHEABLE_PATHNAMES = new Map()
router.get(
'/v1',
validationMiddleware,
@@ -159,8 +175,20 @@ router.get(
intro,
}
const tags = ['version:v1', `pathname:${pathname}`]
statsd.increment('api.pageinfo', 1, tags)
const tags = [
// According to https://docs.datadoghq.com/getting_started/tagging/#define-tags
// the max length of a tag is 200 characters. Most of ours are less than
// that but we truncate just to be safe.
`pathname:${pathname}`.slice(0, 200),
]
statsd.increment('pageinfo.lookup', 1, tags)
// See lengthy comment above about the experiment and the
// CACHEABLE_PATHNAMES global Map object.
if (CACHEABLE_PATHNAMES.has(pathname)) {
statsd.increment('pageinfo.cacheable', CACHEABLE_PATHNAMES.get(pathname), tags)
}
CACHEABLE_PATHNAMES.set(pathname, (CACHEABLE_PATHNAMES.get(pathname) || 0) + 1)
defaultCacheControl(res)