2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 04:56:45 +00:00
Matthias Mair f149e61244
Accessibility improvements (#53)
* add alt tags to lear more

* make logo section better screenreadable

* enhance contrast on footer

* add alt text to back button

* switch colors -> maybe better contrast on links?

* make link text better readable

* switch color back

* and another try

* Revert "and another try"

This reverts commit cb58c92c51877ce07771cb1a95ffb8d5e460beee.
2022-11-10 22:29:41 +01:00
2022-11-10 11:44:33 +11:00
2022-11-07 00:40:50 +01:00
2022-11-10 22:29:41 +01:00
2022-11-09 17:30:45 +01:00
2022-08-09 00:50:36 +02:00
2022-11-09 17:30:45 +01:00
2022-04-22 22:15:39 +02:00
2022-08-09 00:47:58 +02:00
2022-08-04 23:10:53 +02:00
2022-11-10 11:52:45 +11:00
2022-08-08 07:03:49 +02:00
2022-11-10 22:29:41 +01:00
2022-11-10 21:57:37 +01:00
2022-04-23 00:11:35 +02:00
2022-11-09 17:30:45 +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
2022-11-10 11:57:31 +11:00
2022-08-05 11:44:51 +10:00
2022-11-09 17:30:45 +01:00
2022-08-09 11:50:23 +10:00
2022-11-06 18:38:16 +01:00
2022-04-23 14:47:46 +02:00
2022-08-09 00:32:00 +02:00
2022-04-23 13:19:41 +02:00
2021-11-08 23:24:52 +01:00
2022-08-09 00:47:58 +02:00
2022-02-07 01:00:04 +01:00
2022-02-07 00:29:53 +01:00
2022-11-08 00:35:17 +01:00
2022-11-09 17:30:45 +01:00

InvenTree website

This project contains the source for InvenTree's website. It is built on Jekyll and GitHub pages for backend / hosting and tailtwindcss for frontend.

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%