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

Refactor directives #814

Merged
merged 6 commits into from
May 9, 2024
Merged

Conversation

alcarney
Copy link
Member

@alcarney alcarney commented May 9, 2024

Rather than try and have a single Directives language feature that does all the work of discovering directives, suggesting completions AND making it all work for both rst and myst, this commit breaks the work up between multiple LanguageFeatures.

There is a backend Directives feature, that will provide an API that the various frontend features can use.

Then there is the RstDirectives and MystDirectives features that build on the backend to surface the relevant features for their respective syntax. At the moment they are nearly identical however, they are now free to diverge to better support their associated syntax

This PR also makes some improvements to the Makefiles

  • so that it's possible to get the server's dev environment stood up on an arm machine (like a raspberry pi).
  • switch over to using hatch's new test subcommand rather than using tox

alcarney added 3 commits May 9, 2024 19:23
`python3` is probably the more portable option - and should guard
against selecting python 2.x if that's still hanging around.
@alcarney alcarney force-pushed the refactor-directives branch from acff90a to 90277c9 Compare May 9, 2024 18:27
Rather than try and have a single `Directives` language feature that
does all the work of discovering directives, suggesting completions
AND making it all work for both rst and myst, this commit breaks the
work up between multiple `LanguageFeatures`.

There is a backend `Directives` feature, that will provide an API that
the various frontend features can use.

Then there is the `RstDirectives` and `MystDirectives` features that
build on the backend to surface the relevant features for their
respective syntax. At the moment they are nearly identical however,
they are now free to diverge to better support their associated syntax.
@alcarney alcarney force-pushed the refactor-directives branch from 90277c9 to 49f1b1d Compare May 9, 2024 18:52
Hopefully, this can sidestep any issues with not having pip available in
the user's default Python installation
@alcarney alcarney force-pushed the refactor-directives branch from 49f1b1d to 5f5aef6 Compare May 9, 2024 19:06
@alcarney alcarney merged commit f595fd3 into swyddfa:develop May 9, 2024
13 of 14 checks passed
@alcarney alcarney deleted the refactor-directives branch May 9, 2024 20:33
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.

1 participant