Skip to content

[doc] Shuffle doc organization and simplify publication - #2614

Merged
antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:doc-website
Jul 23, 2020
Merged

antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:doc-website

Conversation

@antiagainst

@antiagainst antiagainst commented Jul 22, 2020 •

Copy link
Copy Markdown
Member

This commit creates a better structure for documentation and
makes it easier to map to the doc website. Specifically, now
we have the following subdirectories:

  • using_iree/: docs for using IREE as a dependent project.
  • get_started/: docs for getting started with developing IREE.
  • developing_iree/: docs for developing/contributing to IREE.
  • design_docs/: design docs. :)

Obsolete docs like simple_ir_walkthrough.md and mnist_example.md
are deleted so that we can just copy the whole docs/ directory
over and publish them on the doc website.

The URL for docs now follow hyphened-names, which is the
common practice, except for the Dialect/ directory. Because
we use MLIR to generate dialect documentation and they have
an expectation there..

Because of the above, we are able to clean up the publication
scripts.

This commit creates a better structure for documentation and
makes it easier to map to the doc website. Specifically, now
we have the following subdirectories:

- using_iree/: docs for using IREE as a dependent project.
- get_started/: docs for getting started with developing IREE.
- developing_iree/: docs for developing/contributing to IREE.
- design_docs/: design docs. :)

Obsolete docs like simple_ir_walkthrough.md and mnist_example.md
are deleted so that we can just copy the whole docs/ directory
over and publish them on the doc website.

Because of the above, we are able to clean up the publication
scripts.
@antiagainst

Copy link
Copy Markdown
Member Author

@ScottTodd

Copy link
Copy Markdown
Member

The URL for docs now follow hyphened-names, which is the
common practice

Looks like underscored_names, not hyphened-names? (which is fine, just confused by the PR description)

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -5 to -6
This walks through the process of lowering TensorFlow python to an IREE module,
demonstrating the MLIR that exists at each stage. Many individual intermediate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still looks useful, though the specific IR is outdated. Can we keep it around?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say let's delete it and revive when later we are about to update its contents. Having it there is causing more confusion rather than help. OTOH, anything checked into Git is permanent; so we can easily get it back when necessary. :)

@ScottTodd ScottTodd Jul 22, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the specifics were labeled as outdated, would that help? The general lowering process is still the same and is helpful for seeing how IREE uses MLIR dialects for an end-to-end compilation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to tell what's outdated and what's not without going through a thorough pass to clean things up. I think it causes confusion rather than help under such cases. But given you asked twice, I bringed it back and added a note at the very beginning.

Comment thread docs/mnist_example.md
Comment on lines -3 to -5
This shows the MNIST MLP model as it is compiled from Keras, lowered to XLA HLO,
and then lowered to an IREE module with SPIR-V. Several steps are omitted for
brevity.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should produce an updated version of a similar model compilation flow to replace this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. #1586 is tracking that. This file is quite outdated; it can cause more confusion than help if still left in the repo.

@antiagainst

Copy link
Copy Markdown
Member Author

The URL for docs now follow hyphened-names, which is the
common practice

Looks like underscored_names, not hyphened-names? (which is fine, just confused by the PR description)

It's hyphened-names for URL. Underscored_names for the source code. :)

@antiagainst

Copy link
Copy Markdown
Member Author

Missed a reference to docs/using_iree/using_colab.md in https://github.com/google/iree/blob/main/colab/README.md ?

Good catch! Fixed. :)

@antiagainst
antiagainst requested a review from ScottTodd July 22, 2020 19:30
@antiagainst
antiagainst merged commit c12c0cd into iree-org:main Jul 23, 2020
@antiagainst
antiagainst deleted the doc-website branch July 23, 2020 12:21
@rsuderman rsuderman mentioned this pull request Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants