-
Notifications
You must be signed in to change notification settings - Fork 509
Document occ commands #8907
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
Merged
Merged
Document occ commands #8907
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e088fcf
Test to verify if a command is documented
vitormattos 0b5268e
Document commands
vitormattos 8cd1786
Add summary
vitormattos 2e15b55
Remove --option of update docs command
vitormattos 8ca055c
* Convert arguments and options to table format
vitormattos 9f7f461
Summary removed
vitormattos 248e8b2
Removed suppot to isNegattable because the server Symfony Client is a…
vitormattos 011c879
Rename the GitHub Action
vitormattos ff6a7eb
Removed unused option
vitormattos ad42bfb
Clean code and small improvements at markdown
vitormattos 3f93def
fix: skip this command
nickvergessen 7f6dbab
Reorganize more documentation pages
nickvergessen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| name: Documentation | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/**' | ||
| - 'appinfo/**' | ||
| - 'lib/**' | ||
| - 'templates/**' | ||
| - 'tests/**' | ||
| - 'vendor/**' | ||
| - 'vendor-bin/**' | ||
| - '.php-cs-fixer.dist.php' | ||
| - 'composer.json' | ||
| - 'composer.lock' | ||
|
|
||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - stable* | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: occ-commands-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| occ-commands: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| php-versions: ['8.0', '8.1'] | ||
| server-versions: ['master'] | ||
|
|
||
| steps: | ||
| - name: Set app env | ||
| run: | | ||
| # Split and keep last | ||
| echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV | ||
|
|
||
| - name: Checkout server | ||
| uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
| with: | ||
| submodules: true | ||
| repository: nextcloud/server | ||
| ref: ${{ matrix.server-versions }} | ||
|
|
||
| - name: Checkout app | ||
| uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
| with: | ||
| path: apps/${{ env.APP_NAME }} | ||
|
|
||
| - name: Set up php ${{ matrix.php-versions }} | ||
| uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite | ||
| coverage: none | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Check composer file existence | ||
| id: check_composer | ||
| uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2 | ||
| with: | ||
| files: apps/${{ env.APP_NAME }}/composer.json | ||
|
|
||
| - name: Set up dependencies | ||
| # Only run if phpunit config file exists | ||
| if: steps.check_composer.outputs.files_exists == 'true' | ||
| working-directory: apps/${{ env.APP_NAME }} | ||
| run: composer i | ||
|
|
||
| - name: Set up Nextcloud | ||
| env: | ||
| DB_PORT: 4444 | ||
| run: | | ||
| mkdir data | ||
| ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password | ||
| ./occ app:enable --force ${{ env.APP_NAME }} | ||
| ./occ config:system:set debug --value true --type boolean | ||
|
|
||
| - name: Check if documentation is up to date | ||
| id: check_documentation | ||
| run: | | ||
| ./occ talk:developer:update-docs | ||
| cd apps/${{ env.APP_NAME }} | ||
| bash -c "[[ ! \"`git status --porcelain `\" ]] || (cat docs/occ.md && echo 'Documentation outdated. Run the command talk:developer:update-docs locally, commit the occ.md file and push the changes.' && exit 1)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # CoTURN configuration | ||
|
|
||
| ### Background | ||
| The configuration of Nextcloud Talk mainly depends on your desired usage: | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| --- | ||
| title: Capabilities | ||
| --- | ||
| # Capabilities | ||
|
|
||
| ## 3.0 (Initial Talk release) | ||
| * `audio` - audio is supported | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| --- | ||
| title: Constants | ||
| --- | ||
| # Constants | ||
|
|
||
| ## Conversation | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,3 +32,4 @@ | |
| ## Other | ||
|
|
||
| * [Chat commands](commands.md) | ||
| * [Occ commands](occ.md) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.