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

Docs: Edit 'file-system' module #1510

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Docs: Edit 'file-system' module #1510

merged 2 commits into from
Jun 29, 2023

Conversation

fraya
Copy link
Member

@fraya fraya commented Jun 29, 2023

  • Add graphviz extension to create a class hierarchy to file system, posix and microsoft locators.

  • Remove reference to 'file-stream' module. This paragraph was moved from module 'locators' and contained a reference to the module 'file-system', not needed now.

  • Rename key parameter 'filename'. The key parameter appears as 'filename' and in the documentation of the method as 'locator'.

  • To eliminate document duplication, I decided to address the issue in the paragraph discussing the 'make' method. Since it bears close resemblance to the method reference, I opted to remove the initial paragraph and provide a link to the reference instead. Additionally, I consolidated the documentation for the key parameters 'direction' and 'buffer-size' with a more comprehensive explanation.

- Add graphviz extension to create a class hierarchy to file system,
  posix and microsoft locators.

- Remove reference to 'file-stream' module. This paragraph was moved
  from module 'locators' and contained a reference to the module
  'file-system', not needed now.

- Rename key parameter 'filename'. The key parameter appears as
  'filename' and in the documentation of the method as 'locator'.

- To eliminate document duplication, I decided to address the issue in
  the paragraph discussing the 'make' method. Since it bears close
  resemblance to the method reference, I opted to remove the initial
  paragraph and provide a link to the reference instead. Additionally,
  I consolidated the documentation for the key parameters 'direction'
  and 'buffer-size' with a more comprehensive explanation.
Copy link
Member

@cgay cgay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Don't let me forget to install the graphviz extension on opendylan.org!

@@ -885,19 +952,22 @@ File-System module.
instantiated, this method calls the generic function
:gf:`type-for-file-stream`.

The *filename* init-keyword should be a string naming a file. If
The *locator* init-keyword should be a string naming a file. If
the :doc:`Locators <../system/locators>` library is in use,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-existing: "library" here should be "module"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I don't think we need to conditionalize this at all. Why not just say "The locator argument should be a :class:`<file-locator>` or a :drm:`<string>` that can be coerced to one.

@fraya fraya merged commit 1dba458 into dylan-lang:master Jun 29, 2023
@fraya fraya deleted the docs-file-system branch June 29, 2023 17:28
cgay pushed a commit to cgay/opendylan that referenced this pull request Apr 8, 2024
- Add graphviz extension to create a class hierarchy to file system,
  posix and microsoft locators.

- Remove reference to 'file-stream' module. This paragraph was moved
  from module 'locators' and contained a reference to the module
  'file-system', not needed now.

- Rename key parameter 'filename'. The key parameter appears as
  'filename' and in the documentation of the method as 'locator'.

- To eliminate document duplication, I decided to address the issue in
  the paragraph discussing the 'make' method. Since it bears close
  resemblance to the method reference, I opted to remove the initial
  paragraph and provide a link to the reference instead. Additionally,
  I consolidated the documentation for the key parameters 'direction'
  and 'buffer-size' with a more comprehensive explanation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants