Skip to content

Provide a way to install the generated docset #4

@Robzz

Description

@Robzz

It's a bit of a pain to install docsets manually. Some quick thoughts on automating this:

  • Simply copy/pasting the docset directory works, but Zeal needs to be restarted to pick up the new docset. Doing that and killing/restarting Zeal if it's open is a possibility... The heim crate sounds like the good place to check but it may lack the needed functionality. We'll see.
  • Needs to figure out the docset directory. For Zeal, it seems to be stored in an ini like file called Zeal.conf. The dirs crate can probably be used to locate the config file and/or docset directory. Or we use that method as a fallback, and build on Read generation options from toml file #5 and specify it either in the toml file, or in a global toml file (~/.config/cargo-docset.toml or something ?)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions