Problem/Motivation

In the parent issue that plan is to convert *.api.php to markdown topic by topic. However, that means that developers have 3 places to find information instead of the existing 2 places. Let's skip that and convert all *.api.php to markdown in one issue.

Steps to reproduce

Proposed resolution

  • Convert all *.api.php to markdown - This was done by converting the html from a.d.o to an md file and excluding the 'extra' bits that a.d.o adds to the page.
  • Use a flat file structure and rely on navigation, in zensical.toml, to provide structure
  • Exception is that Hook functions are in a directory
  • Create a navigation based on the one used by Symfony docs
  • All Hook documentation moves to a top level 'Hook Functions'. Hooks documentation is PHP doc blocks and code. Some tags are changed as follows:
    • @code/@endcode - the tags are removed and code indented
    • @link/@endlink - converted to text
    • Publish with GitLab pages

Remaining tasks

Preview
Review the navigation, and improve the structure
Review
Existing links need to be checked

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3641394

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

quietone created an issue. See original summary.

quietone’s picture

Issue summary: View changes
quietone’s picture

Issue summary: View changes
quietone’s picture

Issue summary: View changes
quietone’s picture

Issue summary: View changes

For the conversion I wrote some PHP scripts and this html-to-markdown tool for the conversion. The scripts would exclude blocks and sections from the page that are not needed for these high level docs. That went well.

The example code blocks. On a.d.o an 'a' tag in a code block would render as a link but inside a mardown fenced code block it was just plain test, so the link is removed. Perhaps a loss of a feature.

Then there were rounds of cleaning up spelling, formatting etc.