Feedback & Improvements
Hey folks!
Please give feedback regarding the documentation of Nuxt.js in this issue.
Some things you could cover (but don't have to):
Content
- What is unclear/hard to understand/could be better explained?
- What is missing in the docs?
- What is explained too verbose?
- Which examples would you like to see?
- Which parts should be structured better? How?
Style
- Do you have problems reading the docs (font size, font style, ...)
And so on!
We'd love to hear your feedback ☺️ ❤️
Cross-related: https://github.com/nuxt/nuxt.js/issues/4681
大家好:
希望各位可以在这个Issue中提供与Nuxt.js文档相关的反馈。
您的评论可以涉及(不必包含所有):
内容
- 有哪些内容不清楚或难以理解,可以如何完善?
- 文档中缺少什么内容?
- 有那些表达太冗长了?
- 您希望文档包含哪些例子?
- 哪些部分可以完善? 有什么建议?
样式
- 阅读文档时遇到问题(字体大小,字体样式......)
当然也欢迎提出其他方面的想法。
我们将很期待您的反馈☺️❤️
相关Issue: https://github.com/nuxt/nuxt.js/issues/4681
cc @lucasfischer @sp0ken @duruld
Style is clear enough for me.
As I said in #4681, generate mode is often left behind. For example it is never mentionned how asyncData and fetch behave when using it.
Debugging an error happening during the generation is also quite tricky for a lack of logging method available.
Hello members of the nuxt team
I found that the synchronization of nuxt's Chinese document translation is very slow and basically can't be used for reference. Our team has tried both the Vue SSR's native solution and the nuxt solution. Thanks to the nuxt framework. It saves us a lot of costs. Although our products are not yet profitable, but we want to do some work for the translation of Chinese documents for nuxt, can you get your consent?
Hey @falstack 👋
of course! We are happy to accept PRs to this repository which improve the Chinese docs ☺️
I would like to see docs and examples on how to deploy nuxt as a lambda function to aws lambda, google cloud functions, netlify functions etc.
if you're opened to suggestions, here are some subjects which I missed at some point throughout my nuxt experience, feel free to select what makes more sense:
- nuxt in production: examples, guidelines, best practices & recommendation
- tools / monitoring
- ci/cd
- deployment patterns/examples for static/small/medium/large applications: let's say you want to build a popular high traffic website, what would you recommend/implement regarding
- architecture
- services (hosting, cdn, etc...)
- database engine
- libraries
- testing: comprehensive and advanced example/documentation on testing your nuxt application
Would like an explicit example and some minor fine tuning of the documentation of the "Cookie login flow" Vs JWT Auth flow under local strategy here: https://auth.nuxtjs.org/reference/schemes/local
This would be extremely useful for newcomers to nuxt. i.e. exactly what your local strategy settings should be, such as
// Use these settings for Cookie Auth flow tokenRequired: false, tokenType: false
I am afk for another day or two but I can make a PR tomorrow if someone doesn't want to wait
Pasted from https://github.com/nuxt/nuxt.js/issues/4681
- Documentation needs a lot more work. Hooks, templates areas especially.
- It would be nice to have more guides/documentation around server side things too. For myself & my team it took us a lot of toying around to figure out what a middleware acts like, what plugins really do and how to use serverMiddleware etc.. If you don't start with nuxt and are used to doing things the SPA way, transitioning to nuxt generates a LOT of questions like:
- Ok, this 'thing' loads once on start up, but runs this function on every hit
- Oh crap, why is created() being called on EVERY hit now??!.. 4h later, oh, it's because of an undocumented key property that needs to be set somewhere. It almost looks related to transitions.. How do we disable transitions? etc..
I agree with most of the things already listed here, but I'd like to add some things to the conversation, which I think could help many people, especially those new to Nuxt:
Content
Guide
Listing API/features vs. guiding someone how to accomplish something
I think the guide at the moment could do a better job of actually guiding a (new) user through the process of incrementally building a nuxt application. For example the entries in the Getting Started section of the guide are:
Current "Getting Started" Section of the Guide
- Installation
- Directory Structure
- Configuration
- Routing
- Views
- Async Data
- Assets
- Plugins
- Modules
- Vuex Store
- TypeScript Support
- Commands and Deployment
- Development Tools
I think this is a bit much for a Getting Started part of a guide. Every entry is obviously important in its own regard, but this is more of an overview of the many awesome features of Nuxt. The module section for example shows how to create a module from scratch, but does not list any of the many useful modules that already exist, which in my opinion would make more sense for a new user.
I think what makes Nuxt so awesome is that you get already so much things without adding many lines of code: Need a new page? Just drop a new page.vue file in the pages directory, need to make an API request? yarn add @nuxtjs/axios and add a line to the nuxt.config.js, want to add V-Calendar, which only works client-side? Create a file v-calendar.client.js and add 2 lines for installing the Vue Plugin and so on.
So my suggestion would be to actually reflect that in the nuxt guide focusing more what we want to accomplish and how to do it instead of just listing and explaining the features, I could imagine a structure somewhat like this for the Getting Started guide with the concepts being taught in parantheses:
Propsed "Getting Started" section
- Installation
- Writing Your First Nuxt App
- Hello World with an image (the aliases,
/componentsand/assets) - Adding a new page (
/pages, routing andNuxtLink) - Installing a vue component (
/pluginsandnuxt.config.js) - Making async API requests with axios (
modulesandasyncData) - Adding a dark mode (
/layouts) - Changing the title and adding meta-tags (
headandmetaof pages/nuxt.config.js) - Deploy (
nuxt buildvsnuxt generate, deploying to netlify/now)
- Hello World with an image (the aliases,
- Directory structure is configuration (like current "directory structure" page)
- Further configuration with nuxt.config.js (like current "configuration" page,
- Testing your Nuxt app
Then maybe another section like "core nuxt features", which would inhibit most of the current "Getting Started" pages but also with more of a focus of what we want to accomplish instead of just listing the name of the API.
"Core Nuxt Features" in the Guide
- Adding a Vuex store
- Directory structure is naming (
/storeandnamespacedvuex modules) - Making async API requests (
fetch) - Initializing the store with server-data (
nuxtServerInit)
- Directory structure is naming (
- Routing
- etc.
Examples and documentation feel disconnected
The examples are not incorporated into the Guide/API, which would make tinkering after reading the documenation more accesible and easy.
Other things
- The code examples in the documentation all use kebab-case, although I think you've been favoring using PascalCase (as seen in the examples).
- Having a reference table like for the context for the
nuxt.config.js/configuration part (maybe grouped by concern) and the pages API would be certainly useful in my opinion
Style
As everybody knows, style is a really subjective topic, but I think there a few things that could improve the readibility and legibility of the documentation.
- Give the content a fixed width, so that line length stays around 75 - 100 chars per line
- Use a dark theme for code highlighting in examples, I personally find that it makes skimming a page much easier. 😃 The theme in the CodeSandbox examples is really good.
- Alert components don't have an accessible color contrast (green and orange one)
- This could be fixed like this
Closing Remarks
Okay, this got a little bit longer than expected, I hope that's okay. 😅
I love Nuxt and use it almost exclusively now at work as I have introduced it there and I would be happy to contribute to the docs and also help to implement these suggestions if they are accepted. :)
Keep up the good work! 😃
Please improve documentation / status of the module and community modules. Blog module seems to be from 2017 and apparently not working out of the box with very little documentation.
@phartikainen Which part do you mean precisely? Can you please provide a link?
Official modules listed here: https://github.com/nuxt-community/awesome-nuxt#modules
There is a blog module: https://github.com/nuxt-community/blog-module
It does not work out of the box and it's 2 years old
@phartikainen Hey 👋
awesome-nuxt is a community-curated resource list.
Anyway, you are right, we are cleaning up the modules soon and either update or abandon old ones 👍
Yeah I’m aware of that, but that is the only blog-related module listed
-- Pekka Hartikainen www.pekkahartikainen.fi Twitter: @pastorator
On 21 February 2019 at 12.00.16, Alexander Lichter ([email protected]) wrote:
@phartikainen https://github.com/phartikainen Hey 👋
awesome-nuxt is a community-curated resource list.
Anyway, you are right, we are cleaning up the modules soon and either update or abandon old ones 👍
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxt/docs/issues/1078#issuecomment-465937510, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNrwRgMGpt-Dt8yyj6N9O2SrBaczXjlks5vPm4wgaJpZM4Zob4A .
I think the Nuxt documentation could do a better job at explaining when to use which mode/output for the different types of generic applications that exist. As there is SSR, SPA and then Static. You can also have an SSR application that selectively has SPA mode and vice versa. You can have a Static website with SPA using generate.exclude. You can also just have a Static website that has simple API calls to a DB aka JAMstack. It can get quite confusing.
A lot of the turorials of Nuxt are using the generate part to build content blogs as they are easy examples, but this maybe belittles how far you can get with the JAMstack.
Google have a helpful page regarding this and the Gatsby docs have a section that explains the different use cases.
I think the Nuxt documentation could be even more helpful for people coming to Nuxt for the first time. For example, here are 6 different types of website/application you might build and here is the reccomended way to build them (SPA, SSR, Static etc) and why.
Hi All,
It think something very unclear in the doc is how AsyncData merge data with the internal page data when you use query watcher.
Because it merge data that come from asyncData result with the original data of the page, not the current state.
I personally struggled a lot to grasp how the commands nuxt generate and nuxt build work and how their behaviour changes when the --spa flag is appended. I am still only about 95% sure that nuxt generate --spa and nuxt build --spa produce the same output. This only raises more questions - why does the generate command even allow the --spa flag?
The docs could explain all those modes better, also explain how does the --spa and --universal flags behave when nuxt.config.js has mode set to something different? Who wins? Then there's the --modern flag, so that's even more things to consider.
Another thing is the errors one encounters when dealing with server side rendering and libraries that don't support it out of the box.
I really love Nuxt and I actually believe it could be the standard for creating web apps and web sites. I just hate to think someone could stop using it because of some easily fixable error that s/he couldn't find the solution to in the docs. (almost happened to a colleague - solution was to add ssr:false to a plugin)
I love nuxt! Thanks so much for your work on this. I've recently started a new project so here are a few things I think are missing in the docs:
devModulesdocumentation- How to deploy to
nowv2: the nuxt/now-builder is not mentioned - Deploy to ZEIT in a monorepo (not two nuxt apps, but one app with many microservices)
Thanks again for this great framework 🙏
Hi, I wonder if this is a problem, but I just found that the links in the translated documents are redirected to English one. For example, I was reading Routing document page in Korean (https://ko.nuxtjs.org/guide/routing/) and if I click the link to 'transition', it is connected to 'https://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components', which is original English version of transition document, even if it has a Korean version. This does not apply to every page and link, but it's kind of bothersome sometimes. Plus, most of the translated documents' main page are not translated in each languages!(Only Japanese is translated) Thank you!
@minijaypark They're two different sites, but I think the link can be dynamic based on the language.