2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-05-04 08:18:53 +00:00

Merge pull request #13 from matmair/content

more content / layout
This commit is contained in:
Matthias Mair 2022-04-22 23:07:14 +02:00 committed by GitHub
commit 6b1734877a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
61 changed files with 106 additions and 79 deletions

View File

@ -3,7 +3,10 @@ title: InvenTree
tagline: Intuitive Inventory Management tagline: Intuitive Inventory Management
demo-link: https://inventree.readthedocs.io/en/latest/demo/ demo-link: https://inventree.readthedocs.io/en/latest/demo/
doc-link: https://inventree.readthedocs.io/en/latest/ doc-link: https://inventree.readthedocs.io/en/latest/
plugin-link: https://repo.invenhost.com/ blog-link:
internal: blog.html
plugin-link:
internal: plugins.html
description: >- description: >-
InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. InvenTree is an open-source inventory management system which provides intuitive parts management and stock control.
@ -20,6 +23,8 @@ collections:
output: true output: true
custom_permalink_placeholders: ["publisher"] custom_permalink_placeholders: ["publisher"]
#permalink: "/:publisher/:title" #permalink: "/:publisher/:title"
posts:
permalink: /blog/:year/:month/:day/:title
defaults: defaults:
- scope: - scope:
@ -40,7 +45,7 @@ defaults:
- scope: - scope:
path: "" path: ""
values: values:
layout: "default" layout: "content"
plugins: plugins:
- jekyll-seo-tag - jekyll-seo-tag

View File

@ -1,6 +1,6 @@
ref: business ref: business
link: link:
internal: use/business internal: use/business.md
title: For Business title: For Business
text: | text: |
lorem ipsum text lorem ipsum text

View File

@ -1,9 +1,9 @@
ref: edu ref: edu
link: link:
internal: use/education internal: use/education.md
title: For Education title: For Education
text: | text: |
Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree help you calm the storm! Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree at least do the invetory reliably for you!
features: features:
- title: Open Source - Open Knowledge - title: Open Source - Open Knowledge

View File

@ -1,6 +1,6 @@
ref: maker ref: maker
link: link:
internal: use/maker internal: use/maker.md
title: For Maker title: For Maker
text: | text: |
lorem ipsum text lorem ipsum text

View File

@ -1,6 +1,6 @@
title: InvenTree builds it vast functions on top of a few core workflows title: InvenTree builds it vast functions on top of a few core workflows
link: link:
internal: functions internal: functions/index.md
text: text:
functions: functions:
- title: Organize Parts - title: Organize Parts

View File

@ -5,7 +5,7 @@
- name: Demo - name: Demo
site: demo-link site: demo-link
- name: Plugins - name: Plugins
site: plugin-link internal: plugins.html
- title: Contribute - title: Contribute
cats: cats:
@ -27,7 +27,7 @@
- name: API - name: API
link: https://inventree.readthedocs.io/en/latest/extend/python/ link: https://inventree.readthedocs.io/en/latest/extend/python/
- name: Plugins - name: Plugins
site: plugin-link internal: plugins.html
- name: KiCad - name: KiCad
link: https://github.com/sparkmicro/Ki-nTree/ link: https://github.com/sparkmicro/Ki-nTree/
- name: Fusion360 - name: Fusion360
@ -42,12 +42,12 @@
- name: Home - name: Home
home: true home: true
- name: For Maker - name: For Maker
internal: maker internal: use/maker.md
- name: For Business - name: For Business
internal: business internal: use/business.md
- name: For Education - name: For Education
internal: education internal: use/education.md
- name: About - name: About
internal: about internal: about/index.md
- name: Blog - name: Blog
internal: blog internal: blog.html

View File

@ -1,5 +1,5 @@
<footer class="cm-gray-2 body-font"> <footer class="cm-gray-2 body-font">
<div class="container px-5 py-8 mx-auto flex md:items-center lg:items-start md:flex-row md:flex-nowrap flex-wrap flex-col"> <div class="container px-5 py-8 mx-auto flex md:flex-row md:flex-nowrap flex-wrap flex-col">
<div class="w-64 flex-shrink-0 md:mx-0 mx-auto text-center md:text-left"> <div class="w-64 flex-shrink-0 md:mx-0 mx-auto text-center md:text-left">
<a class="flex title-font font-medium items-center md:justify-start justify-center cm-gray-1"> <a class="flex title-font font-medium items-center md:justify-start justify-center cm-gray-1">
<img src="{{ '/assets/logo.png' | relative_url }}" alt="logo" height="32" width="32" class="h-8"> <img src="{{ '/assets/logo.png' | relative_url }}" alt="logo" height="32" width="32" class="h-8">
@ -30,7 +30,7 @@
<div class="bg-gray-100"> <div class="bg-gray-100">
<div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row"> <div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">
<p class="cm-gray-3 text-sm text-center sm:text-left">© 2021 {{ site.title }} — made with &hearts; by <p class="cm-gray-3 text-sm text-center sm:text-left">© 2021 {{ site.title }} — made with &hearts; by
<a href="https://github.com/matmair" rel="noopener noreferrer" class="cm-gray-2 ml-1" target="_blank">@matmair</a> <a href="https://github.com/matmair" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@matmair</a>
</p> </p>
<span class="inline-flex sm:ml-auto sm:mt-0 mt-2 justify-center sm:justify-start"> <span class="inline-flex sm:ml-auto sm:mt-0 mt-2 justify-center sm:justify-start">
<a href="https://github.com/inventree/InvenTree" alr="officail github repo" class="ml-3 cm-gray-3"> <a href="https://github.com/inventree/InvenTree" alr="officail github repo" class="ml-3 cm-gray-3">

View File

@ -6,9 +6,9 @@
</a> </a>
<nav class="md:mr-auto md:ml-4 md:py-1 md:pl-4 md:border-l md:border-gray-400 flex flex-wrap items-center text-base justify-center"> <nav class="md:mr-auto md:ml-4 md:py-1 md:pl-4 md:border-l md:border-gray-400 flex flex-wrap items-center text-base justify-center">
<a class="mr-5 hover:cm-gray-1" href="{{ '/blog' | relative_url }}">Blog</a> <a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.blog-link %}">Blog</a>
<a class="mr-5 hover:cm-gray-1" href="{{ site.plugin-link }}">Plugins</a> <a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.plugin-link %}">Plugins</a>
<a class="mr-5 hover:cm-gray-1" href="{{ site.doc-link }}">Docs</a> <a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.doc-link %}">Docs</a>
</nav> </nav>
{% if page.main_page %} {% if page.main_page %}

View File

@ -5,7 +5,7 @@
{% if include.item.site %} {% if include.item.site %}
{{ site[include.item.site] }} {{ site[include.item.site] }}
{% elsif include.item.internal %} {% elsif include.item.internal %}
{{ include.item.internal | relativurl }} {% link {{ include.item.internal }} %}
{% elsif include.item.link %} {% elsif include.item.link %}
{{ include.item.link | include fnc/link.html }} {{ include.item.link | include fnc/link.html }}
{% elsif include.item.home %} {% elsif include.item.home %}

View File

@ -1,4 +1,4 @@
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %} {% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
<a href="{{ publisher_ref.url | relative_url }}" class="custom-underline-blue"> <a href="{{ publisher_ref.url | relative_url }}">
by <span class="inline-flex"><img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="self-center w-5 h-5 rounded-full mx-1"> {{ include.pub }}</span> <span class="inline-flex">by <img src="https://github.com/{{ include.pub }}.png?size=40" alt="mdo" class="self-center w-5 h-5 rounded-full" style="margin:0px"> {{ include.pub }}</span>
</a> </a>

View File

@ -2,10 +2,10 @@
<div class="col p-4 d-flex flex-column position-static"> <div class="col p-4 d-flex flex-column position-static">
<div class="d-inline-block"> <div class="d-inline-block">
{% for cat in plugin.categories %} {% for cat in plugin.categories %}
<span class="badge rounded-pill bg-warning">{{ cat }}</span> <span class="badge bg-yellow-500">{{ cat }}</span>
{% endfor %} {% endfor %}
{% for tag in plugin.tags %} {% for tag in plugin.tags %}
<span class="badge rounded-pill bg-info">{{ tag }}</span> <span class="badge bg-blue-400">{{ tag }}</span>
{% endfor %} {% endfor %}
</div> </div>
<h3 class="mb-0">{{ plugin.name }}</h3> <h3 class="mb-0">{{ plugin.name }}</h3>

View File

@ -2,8 +2,13 @@
layout: default layout: default
--- ---
<article class="prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto min-h-screen"
<article class="prose prose-sm sm:prose lg:prose-lg xl:prose-xl mx-auto min-h-screen"> {% if layout.fullwith %}
style="max-width: 90%"
{% endif %}
>
{% if layout.notitle != true %}
<h2>{{ page.title }}</h2> <h2>{{ page.title }}</h2>
{% endif %}
{{ content }} {{ content }}
</article> </article>

View File

@ -1,20 +1,24 @@
--- ---
layout: default layout: content
notitle: true
fullwith: true
--- ---
<h1>{{ page.name }}</h1> <h2>{{ page.name }}
{% include partial/publisher_ref.html pub=page.publisher %} <span class="sm:ml-2 text-sm">{% include partial/publisher_ref.html pub=page.publisher %}</span>
</h2>
<div class="row g-5"> <div class="md:flex md:flex-row flex-wrap">
<div class="col-md-8"> <div class="w-full md:w-3/4">
{{ content }} {{ content }}
</div> </div>
<div class="col-md-4"> <div class="w-full md:w-1/4">
<div class="position-sticky" style="top: 2rem;"> <h2 class="block sm:hidden">Link section</h2>
<div>
<div class="p-4 mb-3 bg-light rounded position-relative"> <div>
<h4 class="fst-italic">Github</h4> <h4 class="fst-italic">Github</h4>
<p class="mb-0">{{ page.github | remove: "https://github.com/" }}</p> <p>{{ page.github | remove: "https://github.com/" }}</p>
<a href="{{ page.github }}" class="stretched-link" aria-label="open github repo"></a> <a href="{{ page.github }}" class="stretched-link" aria-label="open github repo"></a>
</div> </div>
@ -22,7 +26,7 @@ layout: default
<h4 class="fst-italic">Categories</h4> <h4 class="fst-italic">Categories</h4>
<ol class="list-unstyled"> <ol class="list-unstyled">
{% for categorie in page.categories %} {% for categorie in page.categories %}
<li><a href="/categories/#{{ categorie | slugify }}"><span class="badge rounded-pill bg-warning">{{ categorie }}</span></a></li> <li><a href="/categories/#{{ categorie | slugify }}"><span class="badge bg-yellow-500">{{ categorie }}</span></a></li>
{% endfor %} {% endfor %}
</ol> </ol>
</div> </div>
@ -31,17 +35,17 @@ layout: default
<h4 class="fst-italic">Tags</h4> <h4 class="fst-italic">Tags</h4>
<ol class="list-unstyled"> <ol class="list-unstyled">
{% for tag in page.tags %} {% for tag in page.tags %}
<li><a href="/tags/#{{ tag | slugify }}"><span class="badge rounded-pill bg-info">{{ tag }}</span></a></li> <li><a href="/tags/#{{ tag | slugify }}"><span class="badge bg-blue-400">{{ tag }}</span></a></li>
{% endfor %} {% endfor %}
</ol> </ol>
</div> </div>
<div class="mb-3 position-relative"> <div>
<h4 class="fst-italic">Website</h4> <h4 class="fst-italic">Website</h4>
<p class="mb-0">{{ page.website }}</p> <p>{{ page.website }}</p>
<a href="{{ page.website }}" class="stretched-link" aria-label="open website"></a> <a href="{{ page.website }}" class="stretched-link" aria-label="open website"></a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,9 +1,14 @@
--- ---
layout: default layout: content
notitle: true
--- ---
<h1> <h1>
<img src="https://github.com/{{ page.github }}.png?size=40" alt="mdo" class="rounded-circle" width="40" height="40"> <div class="flex">
{{ page.name }} {% if page.github %}
<img src="https://github.com/{{ page.github }}.png?size=40" alt="mdo" class="rounded-full" width="40" height="40" style="margin:0px">
{% endif %}
{{ page.name }}
</div>
</h1> </h1>
<div> <div>
@ -17,7 +22,7 @@ layout: default
</div> </div>
<blockquote class="blockquote"> <blockquote class="blockquote">
<p class="mb-0">{{ content }}</p> {{ content }}
</blockquote> </blockquote>
{% assign filtered_posts = site.posts | where: 'publisher', page.short_name %} {% assign filtered_posts = site.posts | where: 'publisher', page.short_name %}
@ -35,8 +40,11 @@ layout: default
<h3>Plugins</h3> <h3>Plugins</h3>
<ul class="list-unstyled"> <ul class="list-unstyled">
{% for plugin in filtered_plugins %} {% for plugin in filtered_plugins %}
<a href="{{ plugin.title }}"></a> <li>
<li>{{ plugin.title }}</li> <a href="{{ plugin.url | relative_url }}">
{{ plugin.title }}
</a>
</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View File

@ -1,5 +1,4 @@
--- ---
layout: post
publisher: matmair publisher: matmair
title: Starting with templates title: Starting with templates
--- ---

View File

@ -0,0 +1,5 @@
---
publisher: matmair
title: lorem ipsum
---
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

View File

@ -0,0 +1,5 @@
---
publisher: matmair
title: lorem ipsum
---
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

View File

@ -2,6 +2,6 @@
short_name: matmair short_name: matmair
name: Matthias Mair name: Matthias Mair
github: matmair github: matmair
website: https:\\mjmair.com website: https://mjmair.com
--- ---
I try to build an ecosystem of reusable plugins and integrations for InvenTree. Code once and KISS! I try to build an ecosystem of reusable plugins and integrations for InvenTree. Code once and KISS!

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Credits title: Credits
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Imprint title: Imprint
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: About title: About
--- ---
InvenTree is an open-source inventory management system which provides intuitive parts management and stock control. InvenTree is an open-source inventory management system which provides intuitive parts management and stock control.

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Privacy title: Privacy
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Credits title: Credits
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: How to get the source title: How to get the source
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: The core team title: The core team
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Offical Social Media channels title: Offical Social Media channels
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Alternatives title: Alternatives
--- ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
assets/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
assets/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

View File

BIN
assets/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

View File

@ -50,4 +50,20 @@ layout: empty
top: -72px; top: -72px;
visibility: hidden; visibility: hidden;
} }
.badge {
@apply py-1 px-2.5 rounded-full
}
.list-unstyled {
padding-left: 0px;
position: initial;
@apply list-none
}
.list-unstyled li {
padding-left: 0px;
position: initial;
@apply list-none
}
} }

1
assets/site.webmanifest Normal file
View File

@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

View File

View File

@ -1,18 +1,19 @@
--- ---
layout: default layout: default
title: Blog title: Blog
permalink: /blog
--- ---
<section class="cm-gray-2 body-font min-h-screen"> <section class="cm-gray-2 body-font min-h-screen">
<div class="section-container"> <div class="pt-3 pb-1 section-container">
<h1 class="header-text title-font mb-4 cm-gray-2">InvenTree Blog</h1> <h1 class="header-text title-font mb-4 cm-gray-2">InvenTree Blog</h1>
<div class="flex flex-wrap -m-12"> <div class="flex flex-wrap">
{% for post in site.posts %} {% for post in site.posts %}
<div class="p-12 md:w-1/2 flex flex-col items-start"> <div class="p-6 md:w-1/2 flex flex-col items-start">
<h2 class="header-text title-font mb-4 cm-gray-1"> <h2 class="header-text title-font mb-4 cm-gray-1">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a> <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h2> </h2>
<span class="leading-relaxed mb-8">{{ post.excerpt }}</span> <span class="leading-relaxed mb-4">{{ post.excerpt | strip_html | strip_newlines | truncate: 156 }}</span>
<span> <span>
{{ post.date | date_to_string }} | {{ post.date | date_to_string }} |
{% include partial/publisher_ref.html pub=post.publisher %} {% include partial/publisher_ref.html pub=post.publisher %}

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: System Architecture title: System Architecture
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Contribute Code title: Contribute Code
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Help in the community title: Help in the community
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Contribute title: Contribute
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Sponsoring title: Sponsoring
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Translations title: Translations
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Deploying to Bare Metal title: Deploying to Bare Metal
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Deploying to Cloud title: Deploying to Cloud
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Deploying to Docker title: Deploying to Docker
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Deploying InvenTree title: Deploying InvenTree
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: API title: API
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Ecosystem title: Ecosystem
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Integrate title: Integrate
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Ki-n-Tree title: Ki-n-Tree
--- ---

View File

@ -1,5 +1,4 @@
--- ---
layout: content
title: Migration tools title: Migration tools
--- ---

View File

@ -1,11 +1,12 @@
--- ---
layout: content
title: Plugins title: Plugins
--- ---
We supply core-dev and community built plugins to get you started with extending InvenTree's functionality. Plugins can hook into many parts of the UI, buisness logic and webserver. We supply core-dev and community built plugins to get you started with extending InvenTree's functionality. Plugins can hook into many parts of the UI, buisness logic and webserver.
We expose some internal python APIs to speed up your development and keep the instance running while you discover the possibilities. [Learn more](# TODO plugins) We expose some internal python APIs to speed up your development and keep the instance running while you discover the possibilities. [Learn more](# TODO plugins)
### Highlights ###
Highlights
Use APIs supplied by your vendors or part libraries. Use APIs supplied by your vendors or part libraries.
- [Digikey](digikey) - [Digikey](digikey)
- [Octopart](octopart) - [Octopart](octopart)

View File

@ -1,8 +1,9 @@
--- ---
layout: default layout: default
title: Plugins title: Plugins
permalink: /plugins
--- ---
<div class="section-container"> <div class="pt-3 pb-1 section-container">
<h1 class="header-text title-font mb-4 cm-gray-1">Plugins Repository</h1> <h1 class="header-text title-font mb-4 cm-gray-1">Plugins Repository</h1>
{% for plugin in site.plugins %} {% for plugin in site.plugins %}
{% include plugin_card.html plugin=plugin %} {% include plugin_card.html plugin=plugin %}