Giter Site home page Giter Site logo

Comments (10)

Andrew-S-Rosen avatar Andrew-S-Rosen commented on June 1, 2024 2

Throwing my $0.02 in. I'm also very pro-markdown. The highest priority in my opinion should be to diminish the time it takes for a contributor to modify/add to the docs, and the best way to do that is to make sure they're already familiar with the syntax (oftentimes that means markdown).

Edit: I now see @janosh, you already stated basically this.

from atomate2.

utf avatar utf commented on June 1, 2024 1

Ah eval_rst seems useful as it implies that there should be feature parity! Thanks for the information.

from atomate2.

utf avatar utf commented on June 1, 2024 1

Just to let you know, I've started looking at this in #105

from atomate2.

utf avatar utf commented on June 1, 2024 1

The markdown docs are complete.

I also updated the contributors page and revamped the changelog with working links to the PRs.

Hopefully this will encourage others to add to the docs.

from atomate2.

janosh avatar janosh commented on June 1, 2024

Another important point: docs are something where new users are most likely to start contributing. rST is not used at all outside Python documentation and even among Python devs, the vast majority are more familiar with md than rST. Switching to md docs, I think, would make it more likely to receive user additions and corrections to the docs.

from atomate2.

utf avatar utf commented on June 1, 2024

I agree that rst is uncommon and takes some getting used to. The last time I checked, markdown couldn't match the functionality of rST (which is a first class citizen with sphinx) but perhaps things have moved on since then.

I think the docs need improvement in other ways too:

  • I'm not a fan of the multi-section documentation e.g., I have User Guide, API Reference, and Developer Guide at the top, each with their own different side bars. It's really never clear which section you're in. I think a single section documentation with a structured side bar could be better.
  • The "codes" subsection could do with a lot of work.

So it makes sense to try and address these all as part of a general docs update.

from atomate2.

utf avatar utf commented on June 1, 2024

Here is one example that I'm not sure you can do with markdown. Currently, the table of list of workflows is generated automatically from a csv file.

In rST this is very simple:

.. csv-table::
   :file: vasp-workflows.csv
   :widths: 40, 20, 40
   :header-rows: 1

but with markdown is this even possible?

from atomate2.

janosh avatar janosh commented on June 1, 2024

This would be possible with sphinx-markdown-tables which appears to be quite widely used (4.6k "used by" on GH).

The convenient thing about markdown is you can always fallback on a few lines of HTML here and there to cover edge cases. HTML admittedly is not less verbose than rST but also much more widely used and understood.

from atomate2.

janosh avatar janosh commented on June 1, 2024

Or, maybe even better, would be to keep that snippet of rST as is and wrap it in eval_rst

```eval_rst
.. csv-table::
   :file: vasp-workflows.csv
   :widths: 40, 20, 40
   :header-rows: 1
```

as supported by recommonmark.

from atomate2.

janosh avatar janosh commented on June 1, 2024

@utf Nice! Just to make you aware there's something wrong with the VASP wf table. Looked at the CSV and all seems correct but last line renders badly:

Screen Shot 2022-03-31 at 09 30 00

from atomate2.

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.