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

Organizing Documentation #129

Open
13 of 19 tasks
kevmodrome opened this issue May 24, 2020 · 11 comments
Open
13 of 19 tasks

Organizing Documentation #129

kevmodrome opened this issue May 24, 2020 · 11 comments

Comments

@kevmodrome
Copy link
Contributor

kevmodrome commented May 24, 2020

Needs to get documented:

Functionality:

  • Plugins
  • bundling

Helpers:

Examples:

Other:

  • Troubleshooting Page
  • Improve introduction/structure
  • Rephrase prerendering as static export or similar
@kevmodrome kevmodrome changed the title Organising documentaiton Organizing Documentation May 24, 2020
@jakobrosenberg
Copy link
Member

I added bundling to the list

In a project with dynamic imports, setting /admin/_layout.svelte to be bundled would create an admin.js bundle.

If you then also set /admin/crud to be bundled, the content of this folder would then have it's own bundle, called admin_crud.js

@Wolfr
Copy link
Collaborator

Wolfr commented May 24, 2020

$afterPageLoad is worked on in #122 .

@Wolfr
Copy link
Collaborator

Wolfr commented May 24, 2020

@kevmodrome Not sure why you think _layout and _reset needs expanding. The docs are here: https://routify.dev/guide/introduction/structure . Isn't this already covered?

@Wolfr
Copy link
Collaborator

Wolfr commented May 24, 2020

I wrote a guide on how to migrate from svelte-template in #132 .

@jakobrosenberg
Copy link
Member

Should we make a clear distinction between migrating to the starter template and migrating to Routify? Some people just want the routes, so for them it's just a matter of npm installing Routify, running Routify and adding it to App.svelte. (I know we have install instructions, but they seem to be lost on some people. Maybe they could use some clarification.)

@Wolfr
Copy link
Collaborator

Wolfr commented May 24, 2020

I guess at some level what we already have in the docs can be combined with #132 into a section "How to add Routify to your project".

@kevmodrome
Copy link
Contributor Author

@kevmodrome Not sure why you think _layout and _reset needs expanding. The docs are here: https://routify.dev/guide/introduction/structure . Isn't this already covered?

Expanding might be the wrong word. I think that you should be able to go to the Docs and see all features even if they are in the Guide section. Sometime a user might come and just want to see how _layout works without having to hunt around in the guide where it might not even exist (in the eyes of the user)

@jakobrosenberg
Copy link
Member

Added Rephrase prerendering as static export or similar

@Wolfr
Copy link
Collaborator

Wolfr commented May 28, 2020

Two points we have to document:

  • $redirect() functions the same as $goto(), but uses replacestate instead of pushstate (the original page doesn't get added to browser history)
  • You can change the directory Routify uses for its files with a flag: routify --routify-dir routify-files. This is useful when using Electron.

@jakobrosenberg
Copy link
Member

jakobrosenberg commented Jun 2, 2020

Structure section on docs page (explain _reset, _fallback, _layout)

How should we handle this one?

It's already in the guide, so we have to consider the pitfalls of duplicate information

  • it can be confusing, since either the information on page A and B are identical or they're not and you don't know which page you should be reading.
  • it can cause inconsistencies in documentation
  • it can increase navigation clutter

@Wolfr
Copy link
Collaborator

Wolfr commented Jun 30, 2020

  • I removed FunctionDoc styling Recursive bullet list in FunctionDoc #140 from the OP as it is a design issue, not a documentation issue
  • I marked "Troubleshooting" section as done since we now have a FAQ page that could serve for this

@Wolfr Wolfr unpinned this issue Aug 10, 2020
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

No branches or pull requests

3 participants