Skip to content

JuliaDocs/ModuleDocstrings.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModuleDocstrings

Stable Build Status Coverage

A package to create simple "module docstrings" for Julia packages. These are targeted at summarizing the main components of your package, essentially as a prompt or reminder to users. For example:

julia> using ModuleDocstrings

help?> ModuleDocstrings
search: ModuleDocstrings

    •  ModuleDocstrings.generate: Create an API summary docstring for a
       module.

    •  ModuleDocstrings.write: add an API summary docstring to a package.

This reminds users that the two main functions are ModuleDocstrings.generate and ModuleDocstrings.write.

These summaries are brief; to learn more about a particular function, read its help in full:

help?> ModuleDocstrings.generate
  ModuleDocstrings.generate(mod::Module)

  Return an API summary string for mod.

  The summary is assembled from all docstrings in the package, picking the first sentence of each docstring. When added to the
  package (see ModuleDocstrings.write), you should expect to make edits by hand:

    •  exclude docstrings that shouldn't appear in the API summary

    •  rephrase summaries for greater clarity or compactness (alternatively, consider making such changes to the original
       docstring)

Once you've added the docstring to a Pkg.developed package, it can be submitted as a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages