Skip to content

[RFC] Migrate the PPL docs from rST to Markdown #4854

@Swiddis

Description

@Swiddis

Problem Statement
While reStructuredText (rST) has lots of flexible features for documentation, including custom directives and support for better organization schemes, we're hitting issues with portability. The documentation site runs on Markdown, as well as sources like the upcoming PPL playground. Since previous proposals to self-host documentation from our rST were rejected, we're left with a lot of work to migrate the rST documents to Markdown to host on the official OpenSearch site.

Current State
Our docs are primarily in rST. They're being separately migrated to Markdown as part of two separate projects. This is duplicated effort that will need to be repeated for all future documentation changes.

Long-Term Goals

  • Establish a single source of truth for documentation
  • Require no manual migration work to get docs from this repo to downstream sources.
  • Finalize the format for how we want to document PPL features.

Proposal
Migrate the documentation from rST to Markdown. The bulk of the work can be done with automatic conversion. There will be some other work left over at the boundaries where the conversion is clunky.

@kylehounslow noted that it would be easier/more deterministic to do rST -> HTML -> Markdown instead of rST -> Markdown directly. We can also split all the PPL code blocks into separate command blocks and result blocks (with appropriate doctest tweaks). This can be done in a later stage after the initial migration.

@ritvibhatt may have prior art on this as part of the migration for the documentation site.

Alternative
rST does have some valuable features and I've advocated for it before in projects that wanted more power than what Markdown provides. If we want to leverage the features of rST instead of migrating, we should pursue an avenue for hosting these pages directly. Otherwise, we keep paying the migration cost and lose the rST features anyway, in order to maintain the downstream doc hosting.

Metadata

Metadata

Assignees

Labels

RFCRequest For CommentsdocumentationImprovements or additions to documentation

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions