frontendmu / frontend.mu

A community around front-end development based in Mauritius Island. We also organise monthly meetups free for anyone interested to attend.
https://frontend.mu
BSD 3-Clause "New" or "Revised" License
27 stars 21 forks source link

New content info #216

Closed k3ii closed 2 months ago

k3ii commented 2 months ago

docs(info): add how to become speaker

cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying frontend-mu-nuxt with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3e200d2
Status: ✅  Deploy successful!
Preview URL: https://f799f07e.frontend-mu-staging.pages.dev
Branch Preview URL: https://info.frontend-mu-staging.pages.dev

View logs

MrSunshyne commented 2 months ago

@k3ii the build is failing because the .md files were moved from /content to /content/info

In the menu there's a link to /history, which is no longer valid because the files were moved. I suggest trying to move them back to /content. Might fix this

k3ii commented 2 months ago

@MrSunshyne it is still failing. It cannot find how-to-become-a-speaker.md and how-to-contribute.md. Do you know what is missing?

MrSunshyne commented 2 months ago

@k3ii checks are passing! The way nuxt generate works, it crawls all the links on our pages and explores all other links and generates their html files.

Since we have not linked to /how-to-contribute anywhere on the website, this will be skipped and not be part of the final bundle. This is why it wasn't generated.

You can make it discoverable by adding it to the menu like we did for the history page. Bear in my that since this page will now be explored by the compiler, nuxt will try to find every other relative link within this file and pre-render them as well. If there are broken links, it will fail the build.

You can test this locally by running pnpm nuxt generate

I suggest naming the file /contribute instead of /how-to-contribute

k3ii commented 2 months ago

I get this error with nuxt generate:

> ls
README.md            content              public
app.config.ts        eslint.config.mjs    server
app.vue              layouts              store
assets               lib                  styles
auth-utils           nuxt.config.ts       tailwind.config.js
components           package.json         tests
components.json      pages                tsconfig.json
composables          playwright.config.ts utils
> pnpm nuxt generate
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command "nuxt" not found

 Also, I added contribute to Menu and it's failing.  

k3ii commented 2 months ago

I'm so bad at being a frontend dev xD

MrSunshyne commented 2 months ago

@k3ii you can run pnpm nuxt generate in the root of the repo, it will run the command in the nuxt package.

i see you're already in the folder, if so, you can simply run pnpm generate and it should be fine! of course, you should run pnpm install at least once before trying to generate. That's in the docs :P