Code Monkey home page Code Monkey logo

sigasi_insights's Introduction

Sigasi Documentation source

This repository contains the source of the Sigasi documentation. You can find the rendered version at https://insights.sigasi.com

We are using markdown with Hugo.

Hugo

  • Install: Hugo
  • Build hugo
  • Test: hugo server --buildFuture --buildDrafts to start serving pages locally. The url will be printed in the hugo output.
    • Use the -F (or --buildFuture) option to show posts with dates in the future.
    • Use the -D (or --buildDrafts) option to show posts with draft status.
  • Tools:
    • Enable shell autocompletion: sudo hugo gen autocomlete
  • Create content based on archetypes:
    • New release notes: hugo new content/releasenotes/sigasi-4.06.md
    • New tech article: hugo new content/tech/fancy-title.md

Markdown authoring

Links

  • External link: [text](http://www.example.com)
  • Internal link: [text]({{< ref "/manual/demo" >}})
    • title as text: {{< page "manual/demo" >}}
  • Link with link text: <https://www.sigasi.com>

Filenames

  • Use dashes as separator. E.g.: test-me.md and not test_me.md

Images

  • Images are stored in an img folder (e.g. /img/opinion/..., /img/tech/..., ...)
  • Image file names must be lower case

Tips:

  • Images can be aligned by using the figure shortcode with class argument, e.g. {{< figure src="/img/xxx" alt="alt text" class="uk-align-right" >}}
  • When adding a link to a figure, it becomes clickable. When the link is an image (e.g. same as the src), a lightbox is used to show the image.

Code snippets

Tips:

  • You can specify the language of code blocks by appending the language to the first three back ticks: e.g.
entity example is
  port(
    clk : in std_logic
  );
end entity;

Syntax highlighting is configured as follows:

  • Added 2 config settings to config.toml
    • to allow code blocks like above automatically be highlighted: pygmentsCodeFences = "true"
    • to use a separate css file: pygmentsUseClasses = "true"
  • Included a new css file syntax.css in layouts/_default/baseof.html which is generated using the command hugo gen chromastyles --style=monokai > static/css/syntax.css
  • In case you want to change the style, different styles are available, check https://xyproto.github.io/splash/docs/all.html
  • More Hugo documentation on highlighting: https://gohugo.io/content-management/syntax-highlighting/

sigasi_insights's People

Contributors

bartbrosens avatar tivervac avatar heeckhau avatar lievenlemiengre avatar mark-christiaens avatar tivaliy avatar larsasplund 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.