Skip to content

move ddoc file reads out of doc.d - #15525

Merged
WalterBright merged 1 commit into
dlang:masterfrom
WalterBright:docddoc
Aug 11, 2023
Merged

move ddoc file reads out of doc.d#15525
WalterBright merged 1 commit into
dlang:masterfrom
WalterBright:docddoc

Conversation

@WalterBright

Copy link
Copy Markdown
Member

This is because:

  1. gendocfile() should not be doing I/O
  2. its reliance on global state makes it impractical to use as a server

I eventually plan to remove the rest of the I/O out of doc.d, as the other operating system interactions have already been removed. This will make gendocfile() have a lot fewer obscure dependencies, and will only depend on its "front door".

@dlang-bot

Copy link
Copy Markdown

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#15525"

@WalterBright
WalterBright merged commit 98833b0 into dlang:master Aug 11, 2023
@WalterBright
WalterBright deleted the docddoc branch August 11, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants