-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Added per language scope support docs #2451
Conversation
@pokey Looks like meta updater have some problem on windows. If I run the |
Also I would prefer to remove the |
I would argue for keeping unsupported. Otherwise there's no way to know if it is unspecified because it's unsupported or if we just haven't gotten around to indicating its support level yet |
Yes I'm just doubting that we are ever going to actually do that :p |
Sorry not sure I'm following: doubting whether we'll do what? |
Getting around to actually going through all scope facets and specifying unsupported. |
Exactly. That's why it's important to have the ability to distinguish between unsupported and just not having been specified yet. If we just take unspecified to mean it's unsupported, we won't be able to tell which ones are actually unsupported and which we just haven't gotten around to yet |
Eg we could render the missing ones with a question mark in the docs to encourage people to contribute, and so they don't get the false impression it's not supported when really it is |
@pokey Any ideas how to fix the lint:meta problem on windows? |
Not sure but I'm not sure it's a good idea to use meta-updater for generating this .md file anyway. My instinct would be to do that during web build step. Is there some reason to prefer checking this file into source control? |
I always prefer if documentation is in markdown. If I need to navigate to a webpage to read the docs I'm probably not gonna do it as often. |
Yeah but this file is huge. Are you really going to read this file anyway? I had thought that the tables were supposed to be more for users, and that contributors would just look at the source code |
I guess that works as well. Where do you want this placed instead? |
Maybe we just generate it into docs folder during website build step and add that to gitignore? That's what we used to do with our api docs |
Where do we have existing configuration for that I can look at? |
I don't believe we do anything like that today. On second thought, though, we should prob do it with an MDX react component that imports the scope support tables |
That sounds reasonable. Have you done anything like that before or do you have some documentation I could look at how to do that with docusaurs? |
Just Google docusaurus MDX. We have some MDX stuff in our next.js root site as well. Look for files ending in mdx If you get stuck let's discuss at meetup |
@AndreasArvidsson why did you downgrade docusaurus? |
It did not compile and I didn't aim to update docusaurus in this pull request; it's already large enough. |
strange was working fine for me, but yeah agreed it's orthogonal |
btw wdyt of f189f12 😄 (credit goes to https://docusaurus.io/feature-requests/p/hiding-parts-of-docs-in-autogenerated-sidebar) |
Yeah if it would have worked fine I wouldn't really have cared, but I ran into major problems with pnpm and just reverting to main fixed it. |
Fine with me :) |
yeah confirmed it's working; doesn't appear in sidebar https://deploy-preview-2451--cursorless.netlify.app/docs/ but can go directly to page so it is still deploying eg https://deploy-preview-2451--cursorless.netlify.app/docs/user/languages/cpp/ |
Nice. I'm happy with that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love this representation, but no point in trying to get it perfect before we actually show it to users; happy to have this as a placeholder for now. The important thing about this PR imo is that we're now able to access common
from .mdx
files in our docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. i fixed a bunch of broken links. see #2609 for the future because we should really catch those 😅
Totally agree! |
Checklist