1
0
mirror of synced 2026-01-10 00:03:04 -05:00

Merge branch '2021-getting-started-guides' of https://github.com/github/docs-internal into 2021-getting-started-guides

This commit is contained in:
Sarita Iyer
2021-07-21 11:14:50 -04:00
6 changed files with 36 additions and 28 deletions

View File

@@ -18,6 +18,9 @@ on:
- 'lib/webhooks/**'
- 'scripts/**'
- 'translations/**'
- 'package*.json'
- 'app.json'
- 'Procfile'
jobs:
triage:
@@ -76,6 +79,9 @@ jobs:
- 'lib/webhooks/**'
- 'scripts/**'
- 'translations/**'
- 'package*.json'
- 'app.json'
- 'Procfile'
# When there are changes to files we can't accept
# and no review exists,leave a REQUEST_CHANGES review
@@ -97,7 +103,10 @@ jobs:
'lib/rest/**',
'lib/webhooks/**',
'scripts/**',
'translations/**'
'translations/**',
'package*.json',
'app.json',
'Procfile'
]
const badFiles = badFilesArr.join('\n')

View File

@@ -50,10 +50,7 @@ COPY webpack.config.js ./webpack.config.js
COPY next.config.js ./next.config.js
COPY tsconfig.json ./tsconfig.json
RUN npx tsc
# We need to copy data in order to do the build
COPY --chown=node:node data ./data
RUN npx tsc --noEmit
RUN npm run build
@@ -88,6 +85,7 @@ ENV AIRGAP true
# Copy only what's needed to run the server
COPY --chown=node:node assets ./assets
COPY --chown=node:node content ./content
COPY --chown=node:node data ./data
COPY --chown=node:node includes ./includes
COPY --chown=node:node layouts ./layouts
COPY --chown=node:node lib ./lib
@@ -96,6 +94,7 @@ COPY --chown=node:node translations ./translations
COPY --chown=node:node server.mjs ./server.mjs
COPY --chown=node:node package*.json ./
COPY --chown=node:node feature-flags.json ./
COPY --chown=node:node next.config.js ./
EXPOSE 80
EXPOSE 443

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -18,8 +18,8 @@ If you're taking a node offline that has any data services (like git, pages, or
1. Find the `uuid` of the node in with the `ghe-config`command.
```
$ ghe-config cluster._hostname_.uuid
```shell
$ ghe-config cluster.<em>HOSTNAME</em>.uuid
```
2. You'll need to monitor the status of your node while the data is being copied. Ideally, the node shouldn't be taken offline until the copying is complete. To monitor the status of your node, run any of the following commands:
@@ -29,11 +29,11 @@ If you're taking a node offline that has any data services (like git, pages, or
ghe-spokes evac-status
```
For {% data variables.product.prodname_pages %}
{% raw %}
```shell
echo "select count(*) from pages_replicas where host = 'pages-server-<em>UUID</em>'" | ghe-dbconsole -y
```
echo "select count(*) from pages_replicas where host = 'pages-server-<uuid>'" | ghe-dbconsole -y
```
{% endraw %}
For storage
```
ghe-storage evacuation-status
@@ -42,26 +42,25 @@ If you're taking a node offline that has any data services (like git, pages, or
3. After the copying is complete, you can evacuate the storage service. Run any of the following commands:
For Git
{% raw %}
```shell
ghe-spokes server evacuate git-server-<em>UUID</em> \'<em>REASON FOR EVACUATION</em>\'
```
ghe-spokes server evacuate git-server-<uuid>
```
{% endraw %}
For {% data variables.product.prodname_pages %}
{% raw %}
```shell
ghe-dpages evacuate pages-server-<em>UUID</em>
```
ghe-dpages evacuate pages-server-<uuid>
```
{% endraw %}
For storage, take the node offline
{% raw %}
```shell
ghe-storage offline storage-server-<em>UUID</em>
```
ghe-storage offline storage-server-<uuid>
```
{% endraw %}
then evacuate
{% raw %}
```shell
ghe-storage evacuate storage-server-<em>UUID</em>
```
ghe-storage evacuate storage-server-<uuid>
```
{% endraw %}

View File

@@ -22,6 +22,7 @@ shortTitle: User into an organization
- An organization **cannot** be converted back to a user.
- The SSH keys, OAuth tokens, job profile, reactions, and associated user information, **will not** be transferred to the organization. This is only true for the user account that's being converted, not any of the user account's collaborators.
- Any commits made with the converted user account **will no longer be linked** to that account. The commits themselves **will** remain intact.
- Any forks of private repositories made with the converted user account will be deleted.
{% endwarning %}

View File

@@ -21,7 +21,7 @@ export default function createProcessor(context) {
.use(markdown)
.use(remarkCodeExtra, { transform: codeHeader })
.use(emoji)
.use(remark2rehype, { allowDangerousHTML: true })
.use(remark2rehype, { allowDangerousHtml: true })
.use(slug)
.use(useEnglishHeadings, context)
.use(autolinkHeadings, { behavior: 'wrap' })