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

fix documentation mistake #2969

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
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
42 changes: 24 additions & 18 deletions docs/docs/hosting/ca-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,9 @@ types**, you can download and install H5P content types.
Content Author can also be set up in the Hub via the CLI. This can be used to
automate the process.

Replace the values with the ones corresponding for your instance, and run in
the Hub:
### Preinstalling H5P libraries

```bash
KEY="my LTI consumer key"
SECRET="my LTI consumer secret"
CA="contentauthor.example.com"

echo -ne "$KEY\n$SECRET\n" | php artisan edlib:add-lti-tool 'Content Author' \
"https://$CA/lti-content/create" \
--send-name \
--send-email \
--edlib-editable \
--slug=content-author

php artisan edlib:add-lti-tool-extra content-author 'CA admin' \
"https://$CA/lti/admin" \
--slug=ca-admin \
--admin

php artisan h5p:library-hub-cache

php artisan h5p:library-install \
Expand Down Expand Up @@ -119,3 +102,26 @@ php artisan h5p:library-install \
H5P.Timeline \
H5P.TrueFalse
```

### Adding Content Author to the Hub

Replace the values with the ones corresponding for your instance, and run in
the Hub (**not Content Author**):

```bash
KEY="my LTI consumer key"
SECRET="my LTI consumer secret"
CA="contentauthor.example.com"

echo -ne "$KEY\n$SECRET\n" | php artisan edlib:add-lti-tool 'Content Author' \
"https://$CA/lti-content/create" \
--send-name \
--send-email \
--edlib-editable \
--slug=content-author

php artisan edlib:add-lti-tool-extra content-author 'CA admin' \
"https://$CA/lti/admin" \
--slug=ca-admin \
--admin
```