Giter Site home page Giter Site logo

michetta's Introduction

logo

michetta

Michetta is a simple static site generator based on VuePress: the goal is to generate pure HTML without any client-side framework, leveraging the component model of Vue.js Single File Components and SSR for server-side templating.

Michetta [miˈketta] (also known as rosetta [roˈzetta] "small rose") is an Italian white bread, recognizable from its bulged shape.

Getting Started

You should install Michetta as a local dependency:

# install as a local dependency
npm install michetta --save

Then, add some scripts to package.json:

{
  "scripts": {
    "dev": "michetta dev src",
    "build": "michetta build src"
  }
}

You can now start writing with:

npm run dev

To generate static assets, run:

npm run build

By default the built files will be in .vuepress/dist, which can be configured via the dest field in .vuepress/config.js. The built files can be deployed to any static file server. See VuePress Deployment Guide for guides on deploying to popular services.

Differences from vuePress

Michetta, at its core, it's a fork of VuePress but with some substantial changes:

  • no theme is implemented.
  • the working folder ".vuepress" has been made dynamic and available in the options as "root folder".
  • the components folder has been moved from ".vuepress/components" to "src/components".
  • support markdown files has been removed. Only Vue component can be used for pages and content.
  • frontmatter data are not available; like NuxtJs, Vue-Meta is used to generate head meta infos.

Michetta Extended Options

Michetta extend the default configuration provided by VuePress, with the following options:

sourceDir

  • type: string
  • default: src

Default folder that contains pages, layouts, components, etc.

sourcePages TO BE REMOVED

  • type: string
  • default: pages

Folder that contains the pages as Vue SFC. The path must be relative to the sourceDir path.

layoutTemplate

  • type: string
  • default: michetta/lib/app/default.html

Folder that contains a custom template file for layout. The path must be relative to the sourceDir path.

pageTemplate

  • type: string
  • default: michetta/lib/app/Page.vue

Default Vue component used for page layout; it must containes the <router-view> component. Usually may be customized to include an Header and Footer components. The folder must be relative to the sourceDir path.

notFound

  • type: string
  • default: michetta/lib/app/NotFound.vue

Default Vue component used for a custom 404 page. The path must be relative to the sourceDir path.

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.