crystal
crystal copied to clipboard
📘 Crystal language doc generator for https://github.com/mkdocstrings/mkdocstrings
Trim anchors
Currently when you permalink to a specific method within a type, the anchor includes the FQN of the type itself. Such that you end up with really long redundant URLs....
Given the code: ```cr class Athena::Validator::Foo def self.new(v : Int32 = 1) new ->{ v } end def initialize(&@callback : -> Int32); end end ``` `crystal docs` would render: ...
Foo.updatetools _Originally posted by @Sebastianoskiojoj in https://github.com/mkdocstrings/crystal/issues/3#issuecomment-1264222058_
I recently noticed that seemingly after https://github.com/athena-framework/athena/pull/471 the `View source` links no longer appear. My configuration is like: ```yaml - mkdocstrings: default_handler: crystal custom_templates: ../../../docs/templates handlers: crystal: crystal_docs_flags: - ../../../docs/index.cr...
For Athena, things are currently setup where each component is its own `mkdocs` project via their projects plugin. This is usually fine, but now that I'm getting a bit more...