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

Add documentation #246

Open
skoop opened this issue Jan 5, 2016 · 12 comments
Open

Add documentation #246

skoop opened this issue Jan 5, 2016 · 12 comments

Comments

@skoop
Copy link

skoop commented Jan 5, 2016

The current documentation is a bit... limited.

I've just started working with Prophecy today and I've found it very limited. Since nothing else exists, I'm considering spending some time in the coming months as I get to know Prophecy to create some documentation for it. So I guess this issue is the issue for discussing that documentation.

@skoop
Copy link
Author

skoop commented Jan 5, 2016

First question I had (on Twitter): Any documentation system/format that is requested from the project?

@aik099
Copy link
Member

aik099 commented Jan 5, 2016

It depends on where it will be hosted. I personally like ReadTheDocs and there RST format is used. If the documentation will be hosted on GitHub Wiki, then Markdown is fine.

@everzet , any idea on this?

@skoop
Copy link
Author

skoop commented Jan 5, 2016

RST format is very nice, Markdown is fine as well for me. ReadTheDocs is (imho) more accessible than Github wiki, but that means another site to visit. I personally don't have a specific preference, so I'll be glad to do whatever people are interested in

@ciaranmcnulty
Copy link
Member

I'm sure we'd be happy to point prophecy.phpspec.net to it

@stof
Copy link
Member

stof commented Jan 5, 2016

I see 2 different possibilities:

  • a doc written in markdown and displayed by github itself
  • a doc written in rST and displayed on readthedocs

In any case, the doc should be stored in a docs folder in the repo (allowing it to be versioned alongside the code and updated in PRs adding new features). Github wikis are a bad idea (no PR to update them, no version etc...)

@stof
Copy link
Member

stof commented Jan 5, 2016

@skoop let's go for rST then. It gives a bit more power than Markdown

@skoop
Copy link
Author

skoop commented Jan 5, 2016

OK, rST it is. I will write docs in rST in the docs/ folder, and whatever happens after that is up to you. I'm not promising a timeline yet though, I'm just getting to know Prophecy, it might take a bit of time before I can come up with useful docs.

@aik099
Copy link
Member

aik099 commented Jan 5, 2016

You might want to look at how other ReadTheDocs documentations are formed to see where to place the files and what ReadTheDocs configuration file to create. The Behat (or any other) documentation can serve as good example.

The https://github.com/minkphp/phpunit-mink/tree/master/docs can be used to boostrap a new documentation.

@jakzal
Copy link
Member

jakzal commented Jan 5, 2016

You might also look into phpspec docs.

@everzet
Copy link
Member

everzet commented Jan 5, 2016

I'm all for documentation, but let's do one step at a time. Before going into configuring RTD and fiddling with templates, we could already start writing docs and putting them into docs/ folder. That will give a good starting point for people to have some docs. When that happens we can think about making these docs beautiful and available somewhere else.

@tyteen4a03
Copy link

tyteen4a03 commented Jul 24, 2020

Bump - I was trying to find the API documentation online only to realise the only web one came from Drupal.

@stof
Copy link
Member

stof commented Jul 27, 2020

This issue is not about API documentation. It is about human-written documentation.
In my experience, API documentation is not that useful (expecially when many classes are about the internal implementation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants