Skip to content

Commit

Permalink
docs: add default for generate_help_pages (#425)
Browse files Browse the repository at this point in the history
* chore(flake): expose docgen in devShell

The makefile target is kinda tautologic but it helps with discovery

* ci: update workflow

This might be less optimal then the actual command as it installs more
stuff but it might be closer to what a user will run.

* doc: add default for 'generate_help_pages'

tried to harmoinze the display of defaults as well

* docs(generated): update doc/rocks.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
  • Loading branch information
teto and Github Actions authored Jun 28, 2024
1 parent 67bbaf9 commit 8fe399c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Generating docs
run: nix run ".#docgen"
run: nix develop --command make docgen

- name: Update documentation
env:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ format:

check:
luacheck lua/rocks plugin/ installer.lua

docgen:
docgen
4 changes: 2 additions & 2 deletions doc/rocks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ RocksOpts *RocksOpts*
{luarocks_binary?} (string) Luarocks binary path. Defaults to `{rocks_path}/bin/luarocks`.
{lazy?} (boolean) Whether to query luarocks.org lazily. Defaults to `false`. Setting this to `true` may improve startup time, but features like auto-completion will lag initially.
{dynamic_rtp?} (boolean) Whether to automatically add freshly installed plugins to the 'runtimepath'. Defaults to `true` for the best default experience.
{generate_help_pages?} (boolean) Whether to re-generate plugins help pages after installation/upgrade.
{generate_help_pages?} (boolean) Whether to re-generate plugins help pages after installation/upgrade. Defaults to `true`.
{reinstall_dev_rocks_on_update?} (boolean) Whether to reinstall 'dev' rocks on update (Default: `true`, as rocks.nvim cannot determine if 'dev' rocks are up to date).
{enable_luarocks_loader?} (boolean) Whether to use the luarocks loader to support multiple dependencies (Default: `true`)
{enable_luarocks_loader?} (boolean) Whether to use the luarocks loader to support multiple dependencies (Default: `true`).
{luarocks_config?} (string) Path to the luarocks config. If not set, rocks.nvim will create one in `rocks_path`. Warning: You should include the settings in the default luarocks-config.lua before overriding this.


Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
# to be generated
gcc
tree-sitter
docgen
])
++ oa.buildInputs
++ oa.propagatedBuildInputs;
Expand Down
4 changes: 2 additions & 2 deletions lua/rocks/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ local config = {}
---@field luarocks_binary? string Luarocks binary path. Defaults to `{rocks_path}/bin/luarocks`.
---@field lazy? boolean Whether to query luarocks.org lazily. Defaults to `false`. Setting this to `true` may improve startup time, but features like auto-completion will lag initially.
---@field dynamic_rtp? boolean Whether to automatically add freshly installed plugins to the 'runtimepath'. Defaults to `true` for the best default experience.
---@field generate_help_pages? boolean Whether to re-generate plugins help pages after installation/upgrade.
---@field generate_help_pages? boolean Whether to re-generate plugins help pages after installation/upgrade. Defaults to `true`.
---@field reinstall_dev_rocks_on_update? boolean Whether to reinstall 'dev' rocks on update (Default: `true`, as rocks.nvim cannot determine if 'dev' rocks are up to date).
---@field enable_luarocks_loader? boolean Whether to use the luarocks loader to support multiple dependencies (Default: `true`)
---@field enable_luarocks_loader? boolean Whether to use the luarocks loader to support multiple dependencies (Default: `true`).
---@field luarocks_config? string Path to the luarocks config. If not set, rocks.nvim will create one in `rocks_path`. Warning: You should include the settings in the default luarocks-config.lua before overriding this.

---@type RocksOpts | fun():RocksOpts
Expand Down

0 comments on commit 8fe399c

Please sign in to comment.