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

Revert to source link #31

Merged
merged 9 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
borkdude committed Feb 6, 2023
commit 24930e25bf36a09bafbde53004a55a4520194b07
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Generate API docs. Options:
* `:filename-fn` - transformation of filename before it is rendered to markdown, e.g. for source links.

Returns a map containing the generated markdown string under the key `:markdown`.
https://github.com/borkdude/quickdoc/blob/main/src/quickdoc/api.cljc#L17-L80
<sub><a href="https://github.com/borkdude/quickdoc/blob/main/src/quickdoc/api.cljc#L17-L80">source</a></sub>
2 changes: 1 addition & 1 deletion src/quickdoc/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
(when (:macro var)
(println "Macro.\n\n"))
(print-docstring ns->vars ns-name doc opts))
(println (var-source var opts))
(println (format "<sub><a href=\"%s\">source</a></sub>" (var-source var opts)))
(when collapse-vars (println "</details>\n\n"))))

(defn print-namespace [ns-defs ns->vars ns-name vars opts overrides]
Expand Down