Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
(#1) (ENGTASKS-3631) Add Astro dependencies #2
(#1) (ENGTASKS-3631) Add Astro dependencies #2
Changes from all commits
d4731f3
e31d371
3976468
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
repository-template
Chocolatey choco-astro
NOTE: This project is used on Chocolatey websites and is being released for the benefit of the community. While we endeavour to help and fix issues, it will be limited to GitHub issues, discussions and pull requests when we are able to.
This repository holds all Astro specific dependencies needed to run Astro on a Chocolatey project.
Installation
To install and use these Astro dependencies in a project, run the following command:
If you have used to the Astro CLI to install dependencies on a project, you will need to remove those dependencies in replace of this package.
Upgrading choco-astro
Before upgrading Astro dependencies, review the changelog to ensure there is nothing that will need to change in the repositories that use it. If changes are required, issues should be created to track and implement them with the upgrade of the choco-astro package. To upgrade the dependencies in this package that are managed by Astro, run the following command:
Overriding Automatically Generated Heading ID's
Astro automatically generates ID's for
<h1>
-<h6>
. Unfortunately, it generates invalid ID's when the heading starts with a number. To address this issue, choco-astro uses the remark-custom-header-id plugin. See the example below on how to use this plugin to override an ID:Understanding Astro Components
The Chocolatey Design System has all information relating to Astro Components and how to use them:
.mdx
and.astro
file types.<Callout />
Component to display notes and important information.<CollapseButton />
Component to display a button that triggers a collapsed element.<Iframe />
Component to display videos with defined aspect ratios.<Tabs />
Component to display content in tabbed interface.<Xref />
Component to link to other documents within this repository.Markdown Diagrams with Mermaid
Mermaid via an Astro integration allows an easy way to display information with diagrams written in markdown. A simple example of a flowChart diagram could be as follows:
Additional Resources