Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "embedded" command to extract static resources #9982

Merged
merged 17 commits into from
Feb 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typos
  • Loading branch information
guillep2k committed Jan 26, 2020
commit 7d8ee85a648062218729c81e0899a970f350b415
8 changes: 4 additions & 4 deletions docs/content/doc/advanced/cmd-embedded.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inside the `custom` directory (see [Customizing Gitea]({{< relref "doc/advanced/
To obtain a copy of the embedded resources ready for editing, the `embedded` command from the CLI
can be used from the OS shell interface.

## List resources
## Listing resources

To list resources embedded in Gitea's executable, use the following syntax:

Expand All @@ -42,7 +42,7 @@ for its glob syntax. Here are some examples:
- List all files inside `public/img`: `public/img/**`

Don't forget to use quotes for the patterns, as spaces, `*` and other characters might have
a special significance for your command shell.
a special meaning for your command shell.

If no pattern is provided, all files are listed.

Expand All @@ -62,7 +62,7 @@ templates/user/auth/signup_openid_register.tmpl
templates/user/settings/security_openid.tmpl
```

## Extract resources
## Extracting resources

To extract resources embedded in Gitea's executable, use the following syntax:

Expand All @@ -76,7 +76,7 @@ it's not in its default location. This option is only used with the `--custom` f
The `--destination` option tells gitea the directory where the files must be extracted to.
The default is the current directory.

The `--custom` flag tells gitea to extract the files directly into the `custom` directory
The `--custom` flag tells gitea to extract the files directly into the `custom` directory.
For this to work, the command needs to know the location of the `app.ini` configuration
file (`--config`) and, depending of the configuration, be ran from the directory where
gitea normally starts. See [Customizing Gitea]({{< relref "doc/advanced/customizing-gitea.en-us.md" >}}) for details.
Expand Down