Git Product home page Git Product logo

htdocs-2020's Introduction

libregraphicsmeeting.org/2020

Grav based website for the LGM 2020

Local setup

To get Grav to serve the LGM pages on your computer you need to first download the Grav zip package and then add the files from the LGM Git repository.

You can then start the php development server to see the result.

Here are the details:

  • Create a new directory that will contain the website: that will be the the website directory.
  • Download Grav and put the zip file in the website directory
  • Unzip it (you should know have a grav directory in the website directory).
  • Delete the grav/user/pages directory with its content.
  • in grav/user/config/ delete all files but
    • security.yaml (if it exists)
  • Get the project files from git:
    • Make sure you're at the root of the the website directory (the one containing the grav directory)
    • git init
    • git remote add origin https://github.com/libregraphicsmeeting/htdocs-2020.git
    • git fetch origin
    • git checkout --track origin/master
  • Start the php development web server at the root of the website directory (or setup Apache to serve the site):
    GRAV_BASEDIR="/grav" php -S localhost:8000 grav/system/router.php
  • Go to localhost:8000 with a browser.

At the end of this process you should have a structure that is similar to:

lgm-2020/
    .htaccess
    grav/
        users/
            accounts/
            config/
            data/
            pages/
                ...
            plugins/
                error/
                markdown-notices/
                problems/
            themes/
                quark/
                quark-lgm-2020/
    sync/

Publishing the local files

Currently, we do not plan to have a web UI for the website.

You can simply create the file in your local Grav, add them to the Git repository and when you push them, the file will be deployed to the website (through a webhook on Github and a trivial git update script on the web server).

Todo

  • We will have to check how to define the users and store them in git (or have different users in the local instance and online)

htdocs-2020's People

Contributors

animtim avatar aoloe avatar elisadcg 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.