Replies: 15 comments
-
I'm happy to help with the documentation. I have a quick reference that I could clean up and commit. I'll also take a closer look at the docs and see where I think my efforts would be most useful. Once I have a better idea, I'll comment here first to make sure I don't duplicate anyone's efforts. |
Beta Was this translation helpful? Give feedback.
-
I'll post a comment here when I start to work on a page. |
Beta Was this translation helpful? Give feedback.
-
I'm still mulling over the docs proposal/changes, but I had a couple thoughts: Has there been any consideration for documentation tools other than Typedoc? Have you looked at or considered https://docusaurus.io/? I've used it in the past and really enjoyed it. There would be some trade-offs (like mdx vs md (React), no translations yet, no apparent JsDoc support), but there is also some really nice tooling around it. One big one is their Algolia integration, which is painless and free for open-source projects (https://www.algolia.com/for-open-source) But, I do see some magical things going on in the Twind markdown files and I am guessing that Typedoc might be taking care of converting JSDoc comments. And, those things might be too important or useful to walk away from and that is understandable if so. Anyways, not trying to rock the boat and I’m happy to help with Typedoc if that is the direction…just wanted to mention this. Here is a project in Docosaurus 2 that I made a while back if you’d like to check it out for reference: https://www.tsx.guide/introduction/welcome And, here is an example of a page where I embedded a Typedoc-generated site in an Iframe: |
Beta Was this translation helpful? Give feedback.
-
I thought about using nextjs, wmr and docusaurus but at that moment it was too much overhead for me. We already had typedoc in place for the API and adding a plugin to add pages seemed a lot easier.
We use it at work and I like it too.
Typedoc includes a search but I do not know if markdown files are searchable.
That was the final kicker for me. We can link to API doc of a method or a module using helpers. It works for pages as well.
Please rock the boat! Your input is always welcome.
Very nice. I want to reach different audiences with the docs:
Typedoc allows to use a own theme. I imagined we can create a own theme using twind. I chosed typedoc because it currently checks all the boxes and we are already using it. But I'm open to use a different tool. For the moment I want focus on the content. I barely have time for that. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the meaningful response! After reading your comments, it makes perfect sense to me now why you stuck with Typedoc, at least for now. And, I do agree that content should be priority, especially with the swiftly evolving changes. The content could also help inform some decisions about the tech stack down the line. |
Beta Was this translation helpful? Give feedback.
-
FAQ regarding shim: When does it make sense to use the shim? Are there downsides and should explicit |
Beta Was this translation helpful? Give feedback.
-
As a drop-in replacement for tailwindcss + purge, for playing around or prototyping, online editor without need for a build step
There is a runtime impact as Twind needs to parse the whole |
Beta Was this translation helpful? Give feedback.
-
I'd like to start working on a quick reference (cheatsheet), which would serve as a condensed version of the docs in a single document. I started a version for myself a while back, so I already have a pretty nice head start. The basic outline that I have in mind is as follows:
If anyone has any thoughts or objections, I'd like to hear them. Otherwise, I'll get to work on it. |
Beta Was this translation helpful? Give feedback.
-
@gojutin This sounds great. |
Beta Was this translation helpful? Give feedback.
-
I've been keeping a list of potential FAQs as they come to mind. I figure I'll go ahead and post them here in case anyone else is interested in seeing or discussing them. I'll continue to update this list as I go unless another format is preferred. I'm also happy to get in this into the docs once the details are ironed out. A couple thoughts:
FAQS
|
Beta Was this translation helpful? Give feedback.
-
Great list of questions. I totally agree with the wording and keeping the answers brief (maybe a short snippet) with links to the docs. @gojutin Do you need help with some of the answers? I may like to add these:
I know the wording does not match and I do not have well-phrased answers for those. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I've combined our questions (and a couple more along the way) and tried to come up with wording that covers as many keywords as possible. I've also broken the list into categories (just for our reference), but the lines get blurry based on how you word the questions. (eg. "Does Twind support dark mode?" vs. "How do I use dark mode with Twind?") General
Comparisons
Usage
Tooling
Community
|
Beta Was this translation helpful? Give feedback.
-
I'm happy to move the FAQs (no answers yet) to either a PR or into a GitHub project so that they are easier to collaborate on. A GitHub project has the added benefit of easy sorting to determine order, but I'm glad to do either. Or, any other ideas? |
Beta Was this translation helpful? Give feedback.
-
@gojutin Whoa! Great job. If you create a PR and allow the maintainer (me) to edit the PR we can collaborate on that one. Other people can use the suggestion feature. Sounds good? |
Beta Was this translation helpful? Give feedback.
-
I'm going to make an effort to at least start answering some of these before I submit a PR. I'm following the same format as the existing FAQ doc (detail, summary). I'll have it submitted by tomorrow and we can regroup from there. |
Beta Was this translation helpful? Give feedback.
-
I have re-structured the documentation to have a good starting point to provide a better "on-boarding": https://twind.dev/docs/
I have splitted the documentation in to two parts:
docs/
folder (see docs/pages.json)The website is currently updated on every push to main. Later I would like to only update the website on releases to have a stable documentation for a release that is not mixed with upcoming features.
What needs to be done?
twind
I'm sure there is a lot more to improve. I hope that some native speakers may pick some of the tasks and provide PRs for these.
You can build the website locally using:
yarn typedoc && open website/docs/index.html
/cc @tw-in-js/contributors
Beta Was this translation helpful? Give feedback.
All reactions