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

Move template expansion to "format-time" #96

Merged
merged 2 commits into from
Aug 12, 2020

Commits on Aug 10, 2020

  1. Move template expansion to "format-time"

    This moves the expansion of templates from macro expansion time to later
    on. This allows us to avoid having to search through expressions looking
    for the actual expression type since those may be hidden by "decorator"
    macros. It also handles cases where `@doc` is used on a string macro
    docstring, such as
    
        @doc raw"..." f(x) = x
    
    Implementation is based on a new internal abbreviation type called
    `Template` which gets prepended and appended to docstrings in modules
    where templates are available. Then, during formatting, we expand these
    `Template` abbreviations into there definitions.
    
    Fixes JuliaDocs#73.
    MichaelHatherly committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    254ba1c View commit details
    Browse the repository at this point in the history
  2. Fix JuliaDocs#93.

    Changes tuple comparision from a roundabout string comparision to use
    proper subtype comparision.
    
    Also adjusts test cases to avoid triggering type alias printing such as
    `Array{T,1}` to `Vector{T}` which fails on Julia 1.6.
    MichaelHatherly committed Aug 10, 2020
    Configuration menu
    Copy the full SHA
    c016667 View commit details
    Browse the repository at this point in the history