GithubHelp home page GithubHelp logo

nokazn / nuxtjs.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nuxt/website-v2

0.0 1.0 0.0 43.07 MB

Nuxt.js Documentation Website (Universal Vue.js Application built with Nuxt.js)

Home Page: https://nuxtjs.org

CSS 0.20% Vue 54.37% JavaScript 43.88% Dockerfile 0.05% Perl 0.03% SCSS 1.47%

nuxtjs.org's Introduction

nuxtjs.org

Gitpod Ready-to-Code

Universal Vue.js Application built with Nuxt.js.

Setup

git clone https://github.com/nuxt/nuxtjs.org.git
cd nuxtjs.org/
yarn

Content and Translations

The markdown files are stored in the content folder.

  • The new docs are in the folder called guides.
  • The i18n folder contains the locale file for each language
  • The navigation is created from the markdown files using the menu if it exits and if not the title which are found in the yaml of each file (You can add a menu key if you need one if there isn't one already there).

When working on a new language you will need to:

  • Create a new branch
  • Create the 18n locale file in the i18n folder by copying the en version and modifying it to the new language.
  • Add your language to the nuxt.config file in the i18n property by copying the en version and modifying it to the new language
  • In the content directory create a folder for your language using your countries locale and then copy the en/guides folder into it.
  • You can then start translating your files.
  • Once finished push your changes and then create a pull request.

Contribute to Nuxtjs.org Persian translation

If you are interested in contributing to the Persian translation of Nuxtjs.org please follow the issue below for further information on how the work is going on:

nuxt#555

Development

Start the dev server on http://localhost:3000

yarn dev

To change the locale, create a .env file with the locale you want to use. An example .env file has been provided which you can copy it's contents to your .env file and change the language to the one you want to see the site in.

NUXT_LOCALE=fr

or add the local in the command line.

# start the documentation in french
NUXT_LOCALE=fr yarn dev

As we are using the content module you can double click on the page in the browser and modify your text directly there which will save your changes just like when you edit in your browser.

Production

If working with a language other than English you will not be able to see the language when running the generate command as for production builds we will only show the English version of the new guides until the guides are almost fully translated. You can still see your translated pages when using the dev command.

yarn generate
yarn start
# Checkout http://localhost:3000

Blog

For those invited to contribute to the NuxtJS blog you can use the command yarn new blog which will create your post for you with some example content.

nuxtjs.org's People

Contributors

alexchopin avatar alvarooncode avatar atinux avatar aytdm avatar bdrtsky avatar benjamincanac avatar danielroe avatar danilhendrasr avatar dawntraoz avatar debs-obrien avatar febrihidayan avatar imgbot[bot] avatar inouetakuya avatar katakuranatsumi avatar katerlouis avatar krutie avatar mannil avatar momokichi avatar mornir avatar namchee avatar oiagorodrigues avatar patrickdaze avatar pi0 avatar rahaug avatar renovate[bot] avatar rodzy avatar seongjin605 avatar tamfoi avatar vhoyer avatar zavvla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.