Skip to content

Commit

Permalink
fix: Adds command help, webpage, and fixes issues with other commands (
Browse files Browse the repository at this point in the history
…#1669)

### Summary

- Fixes `[AdvancedSearch` being accessible by players 😱 
- Adds `[GenCommands` to generate the same commands html page on https://muo.gg/commands.
- Fixes `[helpinfo` so all commands properly show up!

> [!WARNING]  
> ### Developer Warning:
> Commands must now be registered in the `Configure` bootup phase.
> If a command is not registered early enough, it may not be available to systems like [helpinfo
> that cache their information.

> [!NOTE]  
> ### Developer Note:
> Various commands related to generating content have been changed to _Developer_ and above access level.

### Screenshots
<img width="673" alt="image" src="https://github.com/modernuo/ModernUO/assets/3953314/b105b5c9-5eb4-4ace-93ff-1bfb31e7132f">

<img width="547" alt="image" src="https://github.com/modernuo/ModernUO/assets/3953314/e97487e8-47a5-4aa7-89cc-9fe3deda584d">
  • Loading branch information
kamronbatman authored Feb 10, 2024
1 parent 3244704 commit fffda53
Show file tree
Hide file tree
Showing 88 changed files with 1,080 additions and 474 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- name: Extract commands web file
run: |
7z x ./docs/commands/commands.7z -o./docs/commands
rm ./docs/commands/commands.7z
- name: Deploy commands file
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/commands
clean: false
force: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/Distribution/runtimes
/Distribution/nohup.out
/Distribution/ref
/Distribution/web

/Projects/*/obj
/Projects/*/bin
Expand Down
Loading

0 comments on commit fffda53

Please sign in to comment.