Giter Site home page Giter Site logo

Comments (22)

eddiejaoude avatar eddiejaoude commented on May 11, 2024

What would be good, is if there was a markdown -> docs library that allowed referencing to the php files in the markdown & automatically included the code so there was no duplication.

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

Then migrating to ReadTheDocs.org would be right way IMO. It will automatically create table of contents and PDF versions of documentation. The only manual work is transforming Markdown files into RST files.

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Then migrating to ReadTheDocs.org would be right way...

Yes that would be a better idea πŸ‘

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

According to the docs of RTD, it can use Markdown https://read-the-docs.readthedocs.org/en/latest/getting_started.html#in-markdown

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

It can, but that seriously limits set of features you can use.

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

seriously limits set of features you can use

I was just trying to read up on the limitations/differences. Thanks for clarifying πŸ˜„

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

Originally ReadTheDocs.org was a Front-End for Sphynx generated documentation (only supported RST). Over time support for other file formats was added.

If you'd like to send a PR using https://github.com/aik099/phpunit-mink/tree/master/docs might give you a head start.

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Thanks I will take a look πŸ‘

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

I started to have a play...

screenshot 2014-12-31 23 00 12

https://github.com/eddiejaoude/DesignPatternsPHP

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

You can also use theme from ReadTheDocs to make it look exactly like there.

Here are instructions on how to install it locally: https://github.com/qa-tools/qa-tools/tree/read-the-docs/docs
Here is relevant piece of config: https://github.com/qa-tools/qa-tools/blob/read-the-docs/docs/conf.py#L10-L15

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Nice one! πŸ‘

screen shot 2014-12-31 at 23 18 25

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

Now you see why theme matters. Apparently ReadTheDocs.org theme uses only 2 levels of Toc and that's why left sidebar is empty.

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

I'd recommend you go and celebrate New Year instead of doing all of that right now πŸ˜‰

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Haha thanks... I am. You too. Thanks :-)

Chat in 2015

Sent from my iPhone

On 31 Dec 2014, at 23:24, Alexander Obuhovich [email protected] wrote:

I'd recommend you go and celebrate New Year instead of doing all of that right now

β€”
Reply to this email directly or view it on GitHub.

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Hope you had a good New Years eve!

How do I do a link without specifying the extension? eg. if I specify the extension rst & generate html, then it won't work, if I specify the extension html it works but I feel that is wrong?

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

How do I do a link without specifying the extension? eg. if I specify the extension rst & generate html, then it won't work, if I specify the extension html it works but I feel that is wrong?

By default if you create an internal link, then it is assumed to be in RST format and extension isn't required.
Here is how to create external links: http://docutils.sourceforge.net/docs/user/rst/quickref.html#hyperlink-targets

Google is pretty good at searching RST documentation by the way as well.

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Google is pretty good at searching RST documentation by the way as well.

I wasn't being lazy, I did have a look, but with or without the rst extension it didn't work (only with html extension).

I looked at the following docs:
http://sphinx-doc.org/rest.html#hyperlinks
http://sphinx-doc.org/markup/inline.html#ref-role

I will research more, sorry to trouble you πŸ˜„

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

I needed to use :doc: instead of :ref:. Easy when you know how πŸ˜‰

from designpatternsphp.

aik099 avatar aik099 commented on May 11, 2024

I you would like to create PR with your existing progress, then I can take a look at it. It's pretty hard without actually seeing RST content you're talking about. Just add [WIP] before PR title (means work in progress).

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

Sure #115

from designpatternsphp.

fhferreira avatar fhferreira commented on May 11, 2024

+1

from designpatternsphp.

eddiejaoude avatar eddiejaoude commented on May 11, 2024

As this is now done, I am going to close this ticket. Great work all involved πŸ‘

from designpatternsphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.