Giter Site home page Giter Site logo

sjmackenzie / fractalide-website-styx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fractalide/fractalide-website-styx

0.0 3.0 0.0 12.57 MB

styx based code which outputs into fractalide.github.io

License: Mozilla Public License 2.0

Nix 46.51% CSS 37.49% Shell 1.04% Python 1.23% JavaScript 13.73%

fractalide-website-styx's Introduction

Fractalide Website

Website for fractalide made with the styx static site generator.

Content management

The contents is managed in the data folder:

  • data/blocks: Holds the blocks data in nix format.
  • data/news: Holds news in nix, markdown or asciidoc format.
  • data/pages: Holds pages data.

News can be added by adding a content file in data/news Pages can be added by adding entries site.nix pages attribute. Blocks are more complex and requires to create templates.

Nix expressions can be used in markdown or asciidoc files, see documentation for details. Extensive example.

Configuration

conf.nix manage the site settings (Footer contents, javascript libraries, ...) The most important setting is siteUrl that is used for link generation. siteUrl should be set to the url of published site, without the trailing /.

Previewing

Run:

$ styx preview

And visit http://localhost:8080.

nix-build can be used to build the site as a normal nix derivation.

Debugging

nix-repl can be used for debugging, see documentation for details.

Deploying

styx deploy related commands can be used to quickly deploy to github pages.

  • styx deploy --init-gh-pages will prepare the repo for github pages deployment, this command should be run only once.
  • styx-deploy --gh-pages will copy the generated site to the gh-pages directory.
  • Then the gh-pages can be pushed by running (cd gh-pages && git push -u origin gh-pages) && git push -u origin gh-pages

fractalide-website-styx's People

Contributors

sjmackenzie avatar miguelsimoni avatar clacke avatar gsovereignty avatar janiceleunghayes avatar ericsagnes avatar dmichiels avatar gagarin55 avatar

Watchers

 avatar James Cloos avatar  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.