-
Notifications
You must be signed in to change notification settings - Fork 205
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
Split standard library docs up one page per module. #5636
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks! Do we need a redirect from the old docs url or does that just point to the main docs page that lists all modules?
@@ -5,7 +5,7 @@ | |||
{-# OPTIONS_GHC -fno-warn-unused-imports #-} | |||
|
|||
|
|||
-- Remove this module when DEL-6311 is done. | |||
-- | HIDE Remove this module when DEL-6311 is done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta love comments that refer to jira tickets that have been fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just remove this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about it, we fixed this for damlc build
but we use damlc compile
to compile daml-stdlib so it doesn’t help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably ... I'm going to go through the stdlib in a separate PR to clean up docs and I'll try removing it then.
@@ -4,7 +4,7 @@ | |||
{-# LANGUAGE NoImplicitPrelude #-} | |||
{-# LANGUAGE PatternSynonyms #-} | |||
|
|||
-- | Our Prelude, extending WiredIn with things that don't need special treatment. | |||
-- | HIDE Our Prelude, extending WiredIn with things that don't need special treatment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn’t make sense to me.
That sounds like a good idea, I'll add that. |
I made some more changes:
If possible, I'll work on improving the Hoogle database in a separate PR. I don't want to make this one any larger than it already is... (Right now the behavior is that if you click on a hoogle link, it will take you to the standard library index instead of the exact module you want. That was only fine when everything was on the same page.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output looks great. Thank you so much!
47fe5b0
to
74f8117
Compare
74f8117
to
1a4ccd4
Compare
changelog_begin - [DAML Docs] The standard library docs have been split up per module. changelog_end
Co-Authored-By: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
Co-Authored-By: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
1a4ccd4
to
8d476e4
Compare
Fixes #3172
This PR updates our standard library docs to put each module on its own page. Users can easily navigate the docs by using the table of contents on the left, or the standard library page.
Here's a preview:
Summary of changes:
--index-template
option to daml-docs, so you can have a separate template for the module index and individual modules. This was used to make the "standard library" page.TODO before merging:
This change also highlights how a lot of our standard library documentation could be improved. Most modules don't yet have any description. Also, it might be better to put data types before typeclasses in each module doc. I will leave further documentation changes to a separate PR.
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.