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

DOC Update contributing docs page #367

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli marked this pull request as draft October 9, 2023 01:05
@GuySartorelli GuySartorelli force-pushed the pulls/4.13/contributing-docs branch 2 times, most recently from 9328138 to 0c72781 Compare October 10, 2023 01:31
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed anything that mentioned translations. While the docs are set up in a way that could theoretically handle translations, I really don't think we'd accept a translation of the docs as it would be impossible to keep up to date without someone dedicated to doing so.

Modifying documentation requires basic knowledge of [PHPDoc](http://en.wikipedia.org/wiki/PHPDoc) and
[Markdown](http://daringfireball.net/projects/markdown/) as well as a GitHub user account.
Modifying documentation requires basic knowledge of [markdown](https://www.markdownguide.org/). Our documentation also includes some additional syntax which you can read about in the [extended markdown syntax](#extended-markdown-syntax) section below.
Copy link
Member Author

Choose a reason for hiding this comment

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

  • I'm removing phpdocs from this page - that belongs in the contributing code page.
  • The old markdown link doesn't show any of the extended syntax like fenced code blocks or tables which we take advantage of.


[warning]
If you submit a new feature or an API change, we strongly recommend and request that you include a PR to update the necessary documentation. This helps prevent our documentation from getting out of date.
Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't belong here - it's mentioned in the contributing code section which is where people will be reading if they're submitting a new feature or an API change.

Comment on lines -56 to -59
## What to write
After editing the documentation, click "Commit changes", then describe your changes in the "commit summary" and "extended description" fields below.

See [what to write (jacobian.org)](http://jacobian.org/writing/great-documentation/what-to-write/) for an excellent introduction to the different types of documentation. Also see [producing OSS: "documentation"](http://producingoss.com/en/getting-started.html#documentation) for good rules of thumb
for documenting open source software.
Copy link
Member Author

Choose a reason for hiding this comment

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

What to write? Write documentation. These links were just adding more (and frankly outdated) burden to anyone trying to contribute.

Comment on lines -61 to -69
## Structure
Click "Propose changes" when you are ready to commit your changes. This saves them to the forked repository on your profile.

* Keep documentation lines shorter than 120 characters.
* Don't duplicate: Search for existing places to put your documentation. Do you really require a new page, or just a new paragraph of text somewhere?
* Use PHPDoc in source code: Leave low level technical documentation to code comments within PHP, in [PHPDoc](http://en.wikipedia.org/wiki/PHPDoc) format.
* API and developer guides are two forms of source code documentation that complement each other.
* API documentation should provide context, ie, the "bigger picture", by referring to developer guides inside your PHPDoc.
* Make your documentation easy to find: Documentation is useful only when it is interlinked so please make sure your contribution doesn't become an inaccessible island. At the very least, put a link to your index page in the same folder. A link to your page can also appear
as "related content" on other resource (e.g. `/tutorials/site_search` might link to `/developer_guides/forms/introduction`).
Copy link
Member Author

Choose a reason for hiding this comment

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

I've moved any relevant points to the style section.
Most of this is outdated IA stuff. We're going to have to redo our IA eventually as it's currently a mess and is really hard to find relevant documentation (in part because some of these suggestions simply didn't scale well).
In the meantime, I can't see anyone adding substantial enough docs to need this part of the guide.

@GuySartorelli GuySartorelli marked this pull request as ready for review October 10, 2023 01:35
* API documentation should provide context, ie, the "bigger picture", by referring to developer guides inside your PHPDoc.
* Make your documentation easy to find: Documentation is useful only when it is interlinked so please make sure your contribution doesn't become an inaccessible island. At the very least, put a link to your index page in the same folder. A link to your page can also appear
as "related content" on other resource (e.g. `/tutorials/site_search` might link to `/developer_guides/forms/introduction`).
You will see a form to submit a Pull Request. Make sure to target your pull request at the correct branch you took note of earlier.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You will see a form to submit a Pull Request. Make sure to target your pull request at the correct branch you took note of earlier.
You will see a form to submit a pull request. Make sure to target your pull request at the correct branch you took note of earlier.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

* Do not put a `$` in front of lines of bash code examples.
* When referencing directories, always add a trailing slash to avoid confusions with regular files
* "Silverstripe CMS" is used to refer to the Silverstripe CMS open source project as a whole.
* "Silverstripe" is used to refer to the company, where appropriate.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* "Silverstripe" is used to refer to the company, where appropriate.
* "Silverstripe Ltd" is used to refer to the company, where appropriate.

Copy link
Member Author

@GuySartorelli GuySartorelli Oct 11, 2023

Choose a reason for hiding this comment

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

We've been actively avoiding "Silverstripe Ltd" to refer to the company as per @maxime-rainville's instruction
Personally I agree that the Ltd suffix avoids confusion, but 🤷‍♀️

@emteknetnz emteknetnz merged commit 6781615 into silverstripe:4.13 Oct 12, 2023
@emteknetnz emteknetnz deleted the pulls/4.13/contributing-docs branch October 12, 2023 20:32
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