Skip to content

Commit 3080fc9

Browse files
craiglpetersgithub-actionslucascostihubwriter
authored
Edit with GitHub dev (github#28597)
* update edit-file-edit-button and add dropdown Updated images for repository/edit-file * Update repo-edit with dropdown * update dev with dropdown * Optimize images * add line break * Restoring the beta message * Docs team edits * Optimize images Co-authored-by: github-actions <[email protected]> Co-authored-by: Lucas Costi <[email protected]> Co-authored-by: hubwriter <[email protected]>
1 parent 2c93cc4 commit 3080fc9

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed
66.4 KB
Loading
148 KB
Loading

Diff for: content/codespaces/the-githubdev-web-based-editor.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
title: The github.dev web-based editor
33
intro: 'Use the github.dev {% data variables.product.prodname_serverless %} from your repository or pull request to create and commit changes.'
44
versions:
5-
fpt: '*'
6-
ghec: '*'
5+
feature: 'githubdev-editor'
76
type: how_to
87
miniTocMaxHeadingLevel: 3
98
topics:
@@ -37,7 +36,10 @@ You can open any {% data variables.product.prodname_dotcom %} repository in the
3736

3837
- Press `.` while browsing any repository or pull request on {% data variables.product.prodname_dotcom %}.
3938
- Change the URL from "github.com" to "github.dev".
40-
39+
- When viewing a file, use the dropdown menu next to {% octicon "pencil" aria-label="The edit icon" %} and select **Open in github.dev**.
40+
41+
![Edit file button dropdown menu](/assets/images/help/repository/edit-file-edit-dropdown.png)
42+
4143
## {% data variables.product.prodname_codespaces %} and the {% data variables.product.prodname_serverless %}
4244

4345
Both the {% data variables.product.prodname_serverless %} and {% data variables.product.prodname_codespaces %} allow you to edit your code straight from your repository. However, both have slightly different benefits, depending on your use case.

Diff for: data/features/githubdev-editor.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Reference: #4918, #7438.
2+
# Documentation for the github.dev web-based editor
3+
versions:
4+
fpt: '*'
5+
ghec: '*'

Diff for: data/reusables/repositories/edit-file.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
1. In the upper right corner of the file view, click {% octicon "pencil" aria-label="The edit icon" %} to open the file editor.
2-
![Edit file button](/assets/images/help/repository/edit-file-edit-button.png)
2+
3+
![Edit file button](/assets/images/help/repository/edit-file-edit-button.png)
4+
5+
{% ifversion githubdev-editor -%}
6+
{% note %}
7+
8+
**Note:** Instead of editing and committing the file using the default file editor, you can optionally choose to use the [github.dev code editor](/codespaces/the-githubdev-web-based-editor) by clicking the dropdown menu next to {% octicon "pencil" aria-label="The edit icon" %} and selecting **Open in github.dev**.
9+
10+
![Edit file button dropdown](/assets/images/help/repository/edit-file-edit-dropdown.png)
11+
12+
{% endnote %}
13+
{%- endif %}

0 commit comments

Comments
 (0)