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

DX: workflows including MyST NB and precommit added #9

Merged
merged 22 commits into from
May 15, 2024
Merged

Conversation

shenvitor
Copy link
Member

Closes #7

@shenvitor shenvitor self-assigned this May 14, 2024
@shenvitor shenvitor requested a review from redeboer May 14, 2024 13:36
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

Looks good already! Just a few changes

docs/conf.py Show resolved Hide resolved
docs/notebook2.md Outdated Show resolved Hide resolved
docs/index.md Outdated Show resolved Hide resolved
@shenvitor shenvitor changed the title workflows including MyST NB and precommit added DX: workflows including MyST NB and precommit added May 14, 2024
@shenvitor shenvitor added the 🖱️ DX Improvements to the Developer Experience label May 14, 2024
@shenvitor
Copy link
Member Author

Improved :) Ready to go~

docs/conf.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
.github/workflows/deploy.yml Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
pixi.toml Show resolved Hide resolved
@shenvitor shenvitor marked this pull request as draft May 14, 2024 14:41
@shenvitor shenvitor marked this pull request as draft May 14, 2024 14:41
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

Thanks, almost there! 👏

pixi.toml Outdated
authors = ["Vitor Shen <17490173+shenvitor@users.noreply.github.com>"]
channels = ["conda-forge"]
description = "Add a short description here"
Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine to leave out version and description for now. They're optional
https://pixi.sh/latest/reference/configuration/#version-optional

pixi.toml Outdated Show resolved Hide resolved
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

Last change 🙈

.github/workflows/deploy.yml Outdated Show resolved Hide resolved
Comment on lines 33 to 16
- uses: actions/setup-node@v4
uses: actions/configure-pages@v5
with:
node-version: 18.x
- name: Install MyST Markdown
run: npm install -g mystmd
- name: Build HTML Assets
run: myst build --html
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
enablement: "true"
Copy link
Member

Choose a reason for hiding this comment

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

I think it's not needed. Never used it for any other ComPWA project and those work just fine.

For sure it's not needed in the build step 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

But seems like this is working fine too. I think I'll keep it for https://pages.github.com/

id: deployment
uses: actions/deploy-pages@v2
path: ./_build/html

Copy link
Member

Choose a reason for hiding this comment

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

Building the pages with pixi run doc is still missing here. That's also what the with.path was originally for (not setup-pixi, that requires no arguments).

Copy link
Member

@redeboer redeboer May 15, 2024

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

ok this is now added

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Done

Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

Just noticed some bugs in the workflow

pixi.toml Outdated Show resolved Hide resolved
pixi.toml Outdated Show resolved Hide resolved
.github/workflows/deploy.yml Outdated Show resolved Hide resolved
id: deployment
uses: actions/deploy-pages@v2
path: ./_build/html

Copy link
Member

@redeboer redeboer May 15, 2024

Choose a reason for hiding this comment

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

@shenvitor shenvitor marked this pull request as ready for review May 15, 2024 12:50
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

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

Awesome 🎉

.github/workflows/ci-docs.yml Outdated Show resolved Hide resolved
.github/workflows/ci-docs.yml Outdated Show resolved Hide resolved
@shenvitor shenvitor merged commit accb203 into main May 15, 2024
3 checks passed
@shenvitor shenvitor deleted the environment branch May 15, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖱️ DX Improvements to the Developer Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate GitHub Pages
2 participants