Skip to content

Commit

Permalink
Prep for new website: move existing docs and disable current publicat…
Browse files Browse the repository at this point in the history
…ion. (iree-org#5733)

Progress on iree-org#5460

* Move the existing `docs/` folder to `docs/developers/`. The new website will go next to that at `docs/website/`.
* Remove old doc generation and publication scripts.
  * Doc publication has been [failing for two weeks](https://github.com/google/iree/actions/workflows/publish_docs.yml) anyways, not worth fixing.
  * New generation/publication will use different scripts/commands. I have that working on my [`mkdocs-publish`](https://github.com/ScottTodd/iree/tree/mkdocs-publish) branch now. Landing this on `main` first will make the rollout easier.

The existing GitHub Pages website will stay up until we push changes to the [`gh-pages`](https://github.com/google/iree/tree/gh-pages) branch. I'm planning on first merging the [`staging-docs-rework`](https://github.com/google/iree/tree/staging-docs-rework) branch _then_ turning on new publishing automation that will push there.

The rollback plan (hopefully not needed) is to

1. Disable any newly enabled publishing automation
2. Restore the `gh-pages` branch manually
3. Revert this PR / restore old publishing scripts/workflows
  • Loading branch information
ScottTodd authored May 5, 2021
2 parents 11c0733 + 2bccccf commit 338756a
Show file tree
Hide file tree
Showing 56 changed files with 26 additions and 620 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/publish_docs.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ gradlew
gradlew.bat
gradle/
local.properties

# Generated documentation files
mkdocs/site/
docs/website/site/
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ for them (e.g. because they don't have write access).
## Peculiarities

Our documentation on
[repository management](https://github.com/google/iree/blob/main/docs/developing_iree/repository_management.md)
[repository management](https://github.com/google/iree/blob/main/docs/developers/developing_iree/repository_management.md)
has more information on some of the oddities in our repository setup and
workflows. For the most part, these should be transparent to normal developer
workflows.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ hardware/API-specific binaries like SPIR-V.

The architecture of IREE is best illustrated by the following picture:

![IREE Architecture](./docs/iree_architecture.svg)
![IREE Architecture](./docs/developers/iree_architecture.svg)

Being compilation-based means IREE does not have a traditional runtime that
dispatches "ops" to their fat kernel implementations. What IREE provides is a
Expand Down Expand Up @@ -111,12 +111,12 @@ IREE aims to
## Roadmap and Milestones

IREE is in the early stages of development and not yet ready for broad adoption.
Check out the [long-term design roadmap](./docs/design_roadmap.md) to get
a sense of where we're headed.
Check out the [long-term design roadmap](./docs/developers/design_roadmap.md) to
get a sense of where we're headed.

We plan on a quarterly basis using [OKRs](https://en.wikipedia.org/wiki/OKR).
Review our latest [objectives](./docs/objectives.md) to get a sense of what
we're up to in the near term.
Review our latest [objectives](./docs/developers/objectives.md) to get a sense
of what we're up to in the near term.

We use [GitHub Projects](https://github.com/google/iree/projects) to track
progress on IREE components and specific efforts. We use
Expand Down
148 changes: 0 additions & 148 deletions build_tools/cmake/build_docs.sh

This file was deleted.

4 changes: 4 additions & 0 deletions docs/developers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# IREE Developer Documentation

Project documentation, developer guides, and other pages not published on
IREE's user-facing website.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions iree/base/signature_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ class RawSignatureParser {
// Parser for signatures generated by SipSignatureMangler.
// This uses a Visitor interface to walk either input or result structs.
//
// Mangler for the 'sip' ABI. See docs/design_docs/function_abi.md in the
// documentation.
// Mangler for the 'sip' ABI. See docs/developers/design_docs/function_abi.md in
// the documentation.
class SipSignatureParser {
public:
enum class StructType {
Expand Down
6 changes: 3 additions & 3 deletions iree/compiler/Bindings/SIP/Utils/SignatureBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class SignatureBuilder {
// -----------------------------------------------------------------------------

// Mangles raw function signatures.
// See docs/design_docs/function_abi.md.
// See docs/developers/design_docs/function_abi.md.
class RawSignatureMangler {
public:
static SignatureBuilder ToFunctionSignature(const SignatureBuilder& inputs,
Expand Down Expand Up @@ -122,8 +122,8 @@ class RawSignatureMangler {
// Mangles function signatures according to the Sip (Structured Index Path) V1
// scheme.
//
// Mangler for the 'sip' ABI. See docs/design_docs/function_abi.md in the
// documentation.
// Mangler for the 'sip' ABI. See docs/developers/design_docs/function_abi.md
// in the documentation.
class SipSignatureMangler {
public:
enum class IndexMode {
Expand Down
4 changes: 2 additions & 2 deletions iree/compiler/Bindings/SIP/Utils/SignatureParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ class RawSignatureParser {
// Parser for signatures generated by SipSignatureMangler.
// This uses a Visitor interface to walk either input or result structs.
//
// Mangler for the 'sip' ABI. See docs/design_docs/function_abi.md in the
// documentation.
// Mangler for the 'sip' ABI. See docs/developers/design_docs/function_abi.md
// in the documentation.
class SipSignatureParser {
public:
enum class StructType {
Expand Down
2 changes: 1 addition & 1 deletion iree/schemas/bytecode_module_def.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ table FunctionSignatureDef {
// Function level reflection attributes.
// These are typically used to communicate additional ABI metadata needed
// for dynamic invocation and host language mapping.
// See: docs/design_docs/function_abi.md
// See: docs/developers/design_docs/function_abi.md
reflection_attrs:[ReflectionAttrDef];
}

Expand Down
7 changes: 4 additions & 3 deletions iree/vm/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ typedef struct iree_vm_module {
// attributes.
// Returns IREE_STATUS_NOT_FOUND if index >= the number of attributes for
// the function.
// See: docs/design_docs/function_abi.md
// See: docs/developers/design_docs/function_abi.md
iree_status_t(IREE_API_PTR* get_function_reflection_attr)(
void* self, iree_vm_function_linkage_t linkage, iree_host_size_t ordinal,
iree_host_size_t index, iree_string_view_t* key,
Expand Down Expand Up @@ -394,7 +394,8 @@ iree_vm_function_signature(const iree_vm_function_t* function);
// Returns the empty string if the reflection data in general or the specific
// key is not found.
//
// See: docs/design_docs/function_abi.md for documentation on the ABI.
// See: docs/developers/design_docs/function_abi.md for documentation on the
// ABI.
IREE_API_EXPORT iree_string_view_t iree_vm_function_reflection_attr(
const iree_vm_function_t* function, iree_string_view_t key);

Expand All @@ -405,7 +406,7 @@ IREE_API_EXPORT iree_string_view_t iree_vm_function_reflection_attr(
// attributes.
// Returns IREE_STATUS_NOT_FOUND if index >= the number of attributes for
// the function.
// See: docs/design_docs/function_abi.md
// See: docs/developers/design_docs/function_abi.md
IREE_API_EXPORT iree_status_t iree_vm_get_function_reflection_attr(
iree_vm_function_t function, iree_host_size_t index,
iree_string_view_t* key, iree_string_view_t* value);
Expand Down
Loading

0 comments on commit 338756a

Please sign in to comment.