Add wiki pages back (2nd try)#283
Conversation
|
And I think I just shifted the problem... |
|
:o would be cool if we could ditch having to use a submodule for this |
|
Should work now. Still have to do some To-Do things but that is it then |
|
And done now, finally 🎉 |
|
I think I went a little bit crazy, I added
|
|
I'm gonna wait with the editor until #285 is merged though |
| </a> | ||
| <p v-if="type === 'editor'">To start a new editor session, use one of the following commands:</p> | ||
| <p v-if="type === 'verbose'">To generate a verbose report, do the following in game or from console:</p> | ||
| <p v-if="type === 'treeview'">To generate a permissiont ree, do the following in game or from the console:</p> |
| }, | ||
| }, | ||
| } | ||
| </script> No newline at end of file |
|
I think I just figured out serverMiddleware doesn't run on Netlify (because it isn't static), so I guess we still have a use for the other repo. |
|
Could it be something that we add to the metadata API? |
|
It's basicly just an express server (like on the metadata-api) running in nuxt. Nothing serious, can just be added to the metadata-api. |
|
As I said already, Netlify only supports static pages.
|
| "scripts": { | ||
| "dev": "nuxt", | ||
| "build": "nuxt build", | ||
| "build": "nuxt build --target static && nuxt export", |
There was a problem hiding this comment.
I think it does the same as nuxt generate. Was more for me to test. Also see my previous comment.
|
Sorry I've been silent on this, kinda been lurking as you've made updates. Overall I think you've done a great job so far and thanks for taking the initiative 💪 I would love to continue using Netlify if possible, because then I can still deploy updates to production without needing to nag Luck about it, plus they handle all the annoying stuff like bandwidth, caching, etc. I haven't really had much chance to play around with Nuxt to really get a good idea on what is the best solution here, though. Personally not a big fan of the HTTP requests for getting the wiki contents but submodules aren't really a great solution either. Can't really add much input at this stage. Would definitely prefer to continue using the metadata API, however. If the wiki does need to be queried via HTTP then we can add it to that instead.
Definitely not keen on this haha. |
This time, most things do actually work. Content is fetched from
/metadata/wiki/:pagewhich fetches from GitHubTODO: