Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove index.html support #7575

Closed
wants to merge 6 commits into from
Closed

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Nov 14, 2022

Summary

Fixes #7574.

Problem

We are now 100% Markdown i.e. all content (and translated-content) is using index.md exclusively, but yari still supports index.html.

Solution

Remove support for content in index.html files.


Screenshots

n/a


How did you test this change?

  • GitHub workflow checks.
  • Dev deployment

@MrBrain295
Copy link
Contributor

The how it works section of the readme will also need some updating.

Copy link
Contributor Author

@caugner caugner left a comment

Choose a reason for hiding this comment

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

Test failure (see here):

Error: MacroLiveSampleError within /home/runner/work/yari/yari/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.md, line 19 column 1 (unable to find any live code samples for "flex_1" within /en-US/docs/Learn/CSS/CSS_layout/Introduction/Flex)
    at buildDocument (/home/runner/work/yari/yari/build/index.ts:369:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async buildDocumentInteractive (/home/runner/work/yari/yari/build/cli.ts:61:29)
    at async buildDocuments (/home/runner/work/yari/yari/build/cli.ts:156:20)

    at async Se._action (/home/runner/work/yari/yari/build/cli.ts:445:60)
    at async Se.run (/home/runner/work/yari/yari/node_modules/@caporal/core/dist/index.js:1:27579)
error: MacroLiveSampleError within /home/runner/work/yari/yari/testing/content/files/en-us/learn/css/css_layout/introduction/flex/index.md, line 19 column 1 (unable to find any live code samples for "flex_1" within /en-US/docs/Learn/CSS/CSS_layout/Introduction/Flex)
    at async Te._run (/home/runner/work/yari/yari/node_modules/@caporal/core/dist/index.js:1:32257)

@github-actions github-actions bot added deployer Deployment (currently using AWS S3 and AWS Lambda) python Pull requests that update Python code labels Nov 18, 2022
@yin1999
Copy link
Member

yin1999 commented Nov 25, 2022

Hi @caugner, should we modify the testing documents. For there are no {{page}} macro left in en-US (maybe we should deprecate
this macro).

See mdn/content#3196.

image

@github-actions github-actions bot added the merge conflicts 🚧 Please rebase onto or merge the latest main. label Dec 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2022

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 Please rebase onto or merge the latest main. label Dec 13, 2022
@github-actions github-actions bot added the merge conflicts 🚧 Please rebase onto or merge the latest main. label Dec 22, 2022
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the idle label Feb 7, 2023
@github-actions github-actions bot removed the idle label May 17, 2023
@github-actions github-actions bot added idle and removed idle labels Jun 17, 2023
@github-actions github-actions bot added the idle label Jul 27, 2023
@caugner
Copy link
Contributor Author

caugner commented May 20, 2024

Closing, as the build system is currently being rewritten, which will also fix this.

@caugner caugner closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployer Deployment (currently using AWS S3 and AWS Lambda) idle internal merge conflicts 🚧 Please rebase onto or merge the latest main. python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove support for HTML content (index.html)
4 participants