Merge branch 'docs/chmod-644' into 'master'

Remove execution permission (unix file permissions) for documentation

Closes #38287

See merge request gitlab-org/gitlab-ce!14471
This commit is contained in:
Rémy Coutable 2017-09-25 20:05:40 +00:00
commit ecd17958cd
67 changed files with 16 additions and 2 deletions

0
app/assets/images/favicon-blue.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
app/views/shared/icons/_icon_status_canceled.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 333 B

0
app/views/shared/icons/_icon_status_created.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 254 B

0
app/views/shared/icons/_icon_status_failed.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

0
app/views/shared/icons/_icon_status_manual.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 787 B

After

Width:  |  Height:  |  Size: 787 B

0
app/views/shared/icons/_icon_status_pending.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 396 B

0
app/views/shared/icons/_icon_status_running.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 293 B

After

Width:  |  Height:  |  Size: 293 B

0
app/views/shared/icons/_icon_status_skipped.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 678 B

0
app/views/shared/icons/_icon_status_success.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 439 B

After

Width:  |  Height:  |  Size: 439 B

0
app/views/shared/icons/_icon_status_warning.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 388 B

After

Width:  |  Height:  |  Size: 388 B

0
doc/university/training/gitlab_flow.md Executable file → Normal file
View File

0
doc/university/training/index.md Executable file → Normal file
View File

0
doc/university/training/topics/additional_resources.md Executable file → Normal file
View File

0
doc/university/training/topics/agile_git.md Executable file → Normal file
View File

0
doc/university/training/topics/bisect.md Executable file → Normal file
View File

0
doc/university/training/topics/cherry_picking.md Executable file → Normal file
View File

0
doc/university/training/topics/env_setup.md Executable file → Normal file
View File

0
doc/university/training/topics/explore_gitlab.md Executable file → Normal file
View File

0
doc/university/training/topics/feature_branching.md Executable file → Normal file
View File

0
doc/university/training/topics/getting_started.md Executable file → Normal file
View File

0
doc/university/training/topics/git_add.md Executable file → Normal file
View File

0
doc/university/training/topics/git_intro.md Executable file → Normal file
View File

0
doc/university/training/topics/git_log.md Executable file → Normal file
View File

0
doc/university/training/topics/gitlab_flow.md Executable file → Normal file
View File

0
doc/university/training/topics/merge_conflicts.md Executable file → Normal file
View File

0
doc/university/training/topics/merge_requests.md Executable file → Normal file
View File

0
doc/university/training/topics/rollback_commits.md Executable file → Normal file
View File

0
doc/university/training/topics/stash.md Executable file → Normal file
View File

0
doc/university/training/topics/subtree.md Executable file → Normal file
View File

0
doc/university/training/topics/tags.md Executable file → Normal file
View File

0
doc/university/training/topics/unstage.md Executable file → Normal file
View File

0
doc/university/training/user_training.md Executable file → Normal file
View File

0
doc/user/project/integrations/img/webhook_logs.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
doc/user/project/issues/img/button_close_issue.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
doc/user/project/issues/img/due_dates_create.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

0
doc/user/project/issues/img/due_dates_edit_sidebar.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
doc/user/project/issues/img/due_dates_todos.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

0
doc/user/project/issues/img/issue_board.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

0
doc/user/project/issues/img/issue_template.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

0
doc/user/project/issues/img/mention_in_issue.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
doc/user/project/issues/img/new_issue.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

0
doc/user/project/repository/img/contributors_graph.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

0
doc/user/project/repository/img/repo_graph.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
doc/user/project/settings/img/general_settings.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
doc/user/search/img/issues_any_assignee.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

0
doc/user/search/img/issues_assigned_to_you.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

0
doc/user/search/img/issues_author.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

0
doc/user/search/img/issues_mrs_shortcut.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

0
doc/user/search/img/left_menu_bar.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

0
doc/user/search/img/project_search.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

0
doc/user/search/img/search_issues_board.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

0
doc/user/search/img/sort_projects.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -3,15 +3,19 @@
cd "$(dirname "$0")/.."
# Use long options (e.g. --header instead of -H) for curl examples in documentation.
grep --extended-regexp --recursive --color=auto 'curl (.+ )?-[^- ].*' doc/
echo 'Checking for curl short options...'
grep --extended-regexp --recursive --color=auto 'curl (.+ )?-[^- ].*' doc/ >/dev/null 2>&1
if [ $? == 0 ]
then
echo '✖ ERROR: Short options should not be used in documentation!' >&2
echo '✖ ERROR: Short options for curl should not be used in documentation!
Use long options (e.g., --header instead of -H):' >&2
grep --extended-regexp --recursive --color=auto 'curl (.+ )?-[^- ].*' doc/
exit 1
fi
# Ensure that the CHANGELOG.md does not contain duplicate versions
DUPLICATE_CHANGELOG_VERSIONS=$(grep --extended-regexp '^## .+' CHANGELOG.md | sed -E 's| \(.+\)||' | sort -r | uniq -d)
echo 'Checking for CHANGELOG.md duplicate entries...'
if [ "${DUPLICATE_CHANGELOG_VERSIONS}" != "" ]
then
echo '✖ ERROR: Duplicate versions in CHANGELOG.md:' >&2
@ -19,5 +23,15 @@ then
exit 1
fi
# Make sure no files in doc/ are executable
EXEC_PERM_COUNT=$(find doc/ app/ -type f -perm 755 | wc -l)
echo 'Checking for executable permissions...'
if [ "${EXEC_PERM_COUNT}" -ne 0 ]
then
echo '✖ ERROR: Executable permissions should not be used in documentation! Use `chmod 644` to the files in question:' >&2
find doc/ app/ -type f -perm 755
exit 1
fi
echo "✔ Linting passed"
exit 0