Giter VIP home page Giter VIP logo

docs's Introduction

modmore documentation

This repository contains the Markdown source for the modmore documentation. The live version of this site can be found at docs.modmore.com.

Contributions to this documentation are very welcome!

This documentation is provided and maintained under the CC BY-SA 4.0 license.

Folder Structure

This repository has a fairly deep folder structure. This is because we'd like to eventually add different languages and version specific documentation, even if those aren't available here now.

The basic structure is:

/Language/Topic/v{Major Version}.x/Documentation.md

The documentation can be further split up. This will be shown on the documentation website in a tree view.

For example /en/ContentBlocks/v1.x/Fields.md or /ru/Commerce/v0.x/Modules/EUVat.md.

File Format

If needed, a custom title can be set per page by using Front matter at the top of a file.

Contributing

You're invited to help us improve the documentation. For this we use git and pull requests on github to manage changes. If you're new to git and need a bit more help getting set up, don't hesitate to ask for help.

When suggesting content changes, please limit yourself to one extra per pull request so we can more easily review the changes. For typos a single pull request across different sections is fine.

Building the static site

Turning the markdown files into a static site is done with Daux. When you have the repository checked out or downloaded locally, install Daux by running composer install in the root of the repository. This uses composer which is assumed to be installed globally.

With Daux installed, you can run ./build.sh. This script will call Daux with the right parameters to build the documentation into the html/ directory. This build step usually takes no more than a few seconds.

From there you can preview the site by pointing your browser to the html directory.

Building assets

The site uses NPM scripts for compiling sass into css, and compiling a couple of small javascript files. All asset related source files can be found in the src folder of the repository, and write distribution files to themes/modmore/dist/.

The first time you want to build the assets, you'll need to run npm install in the root of the repository. This process may take some time.

When building the site with ./build.sh, it will create a symlink between html/themes/ and /themes/, allowing you view changes to the dist files without requiring to rebuild the site on every change.

To build the CSS and to preview the changes, run npm run build:css. Likewise npm run build:js will build the javascript and npm run build will build all different things managed with npm.

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.