Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
75917c51
Commit
75917c51
authored
Nov 02, 2018
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for README and index files
parent
be0af5e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
doc/user/project/repository/index.md
doc/user/project/repository/index.md
+27
-1
No files found.
doc/user/project/repository/index.md
View file @
75917c51
...
...
@@ -53,6 +53,32 @@ To get started with the command line, please read through the
Use GitLab's
[
file finder
](
../../../workflow/file_finder.md
)
to search for files in a repository.
### Repository README and index files
When a
`README`
or
`index`
file is present in a repository, its contents will be
automatically pre-rendered by GitLab without opening it.
They can either be plain text or have an extension of a supported markup language:
-
Asciidoc:
`README.adoc`
or
`index.adoc`
-
Markdown:
`README.md`
or
`index.md`
-
reStructuredText:
`README.rst`
or
`index.rst`
-
Text:
`README.txt`
or
`index.txt`
Some things to note about precedence:
1.
When both a
`README`
and an
`index`
file are present, the
`README`
will always
take precedence.
1.
When more than one file is present with different extensions, they are
ordered alphabetically, with the exception of a file without an extension
which will always be last in precedence. For example,
`README.adoc`
will take
precedence over
`README.md`
, and
`README.rst`
will take precedence over
`README`
.
NOTE:
**Note:**
`index`
files without an extension will not automatically pre-render. You'll
have to explicitly open them to see their contents.
### Jupyter Notebook files
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/2508) in GitLab 9.1
...
...
@@ -165,7 +191,7 @@ minutes.
![
Repository Languages bar
](
img/repository_languages.png
)
Not all files are detected, among others; documentation,
Not all files are detected, among others; documentation,
vendored code, and most markup languages are excluded. This behaviour can be
adjusted by overriding the default. For example, to enable
`.proto`
files to be
detected, add the following to
`.gitattributes`
in the root of your repository.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment