2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 04:56:45 +00:00
2023-01-23 13:39:12 +01:00
2023-01-23 01:07:43 +01:00
2022-11-07 00:40:50 +01:00
2023-01-23 13:39:12 +01:00
2023-01-23 08:00:45 +01:00
2022-12-08 21:05:56 +11:00
2022-08-09 00:50:36 +02:00
2023-01-02 14:33:48 +01:00
2023-01-20 02:08:51 +01:00
2023-01-19 23:43:53 +01:00
2022-08-08 07:03:49 +02:00
2023-01-23 01:07:30 +01:00
2023-01-23 00:54:58 +01:00
2023-01-23 00:53:36 +01:00
2022-02-03 02:07:06 +01:00
2022-04-23 14:47:46 +02:00
2022-04-23 14:47:46 +02:00
2023-01-21 03:10:40 +01:00
2022-11-10 11:57:31 +11:00
2023-01-18 23:50:19 +01:00
2022-11-24 23:33:52 +01:00
2022-08-09 11:50:23 +10:00
2023-01-19 23:46:16 +00:00
2023-01-23 13:39:12 +01:00
2022-04-23 14:47:46 +02:00
2022-08-09 00:32:00 +02:00
2023-01-19 23:29:58 +00:00
2021-11-08 23:24:52 +01:00
2022-02-07 01:00:04 +01:00
2022-02-07 00:29:53 +01:00
2023-01-19 22:16:21 +01:00
2023-01-23 07:54:49 +01:00
2022-11-26 01:04:27 +01:00
2023-01-21 03:10:40 +01:00

InvenTree website

This project contains the source for InvenTree's website. It is built on Jekyll and GitHub pages for backend / hosting, tailtwindcss for design and Netlify for preview builds.

Netlify Status

Architecture

The website consists of content, layouts and assets. Jekyll runs and builds out of these files static html files - that are then hosted on GitHub pages. Folders with an underscore prefixed are internal folders for Jekyll, folders without are rendered as subdirectories in the output.

Content: _data contains data that is references on pages
_drafts contains drafts for blog pages and news items
_news contains news entries
_posts contains blog entries
_publishers contains authors/publishers
_repo will contain plugin repo entries

Layouts: _includes contains partials that can be used in layouts
_layouts contains the page defintions

Assets: assets contains static assets for the pages

The site configuration is saved in config.yaml, required gems in Gemfile and npm packages in package.json.

The CSS stylesheet uses tailwindcss and is built with postcss on demand. NodeJs is needed for this. The main css file is located in assets/index.css. Rebuilds are handled by the workflows automatically.

Common commands

Install packages for ruby and nodejs.

sudo apt-get install rubygems ruby-dev nodejs npm
npm install
sudo gem install bundler
bundle install

Build site locally

bundle exec jekyll build

Run debug server

bundle exec jekyll serve --incremental

Regenerate file structure

tree -I '_site|.git|.jekyll-cache|node_modules' --dirsfirst
Description
The official website for InvenTree - The Open Source Inventory System
Readme MIT 34 MiB
Languages
JavaScript 85.3%
HTML 11.7%
Ruby 2.4%
CSS 0.6%