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
demo-link: https://inventree.readthedocs.io/en/latest/demo/
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: >-
InvenTree is an open-source inventory management system which provides intuitive parts management and stock control.
@ -20,6 +23,8 @@ collections:
output: true
custom_permalink_placeholders: ["publisher"]
#permalink: "/:publisher/:title"
posts:
permalink: /blog/:year/:month/:day/:title
defaults:
- scope:
@ -40,7 +45,7 @@ defaults:
- scope:
path: ""
values:
layout: "default"
layout: "content"
plugins:
- jekyll-seo-tag

View File

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

View File

@ -1,9 +1,9 @@
ref: edu
link:
internal: use/education
internal: use/education.md
title: For Education
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:
- title: Open Source - Open Knowledge

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
<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">
<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">
@ -30,7 +30,7 @@
<div class="bg-gray-100">
<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
<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>
<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">

View File

@ -6,9 +6,9 @@
</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">
<a class="mr-5 hover:cm-gray-1" href="{{ '/blog' | relative_url }}">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="{{ site.doc-link }}">Docs</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="{% include fnc/link.html item=site.plugin-link %}">Plugins</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.doc-link %}">Docs</a>
</nav>
{% if page.main_page %}

View File

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

View File

@ -1,4 +1,4 @@
{% assign publisher_ref = site.publishers | where: 'short_name', include.pub | first %}
<a href="{{ publisher_ref.url | relative_url }}" class="custom-underline-blue">
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>
<a href="{{ publisher_ref.url | relative_url }}">
<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>

View File

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

View File

@ -2,8 +2,13 @@
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>
{% endif %}
{{ content }}
</article>

View File

@ -1,20 +1,24 @@
---
layout: default
layout: content
notitle: true
fullwith: true
---
<h1>{{ page.name }}</h1>
{% include partial/publisher_ref.html pub=page.publisher %}
<h2>{{ page.name }}
<span class="sm:ml-2 text-sm">{% include partial/publisher_ref.html pub=page.publisher %}</span>
</h2>
<div class="row g-5">
<div class="col-md-8">
<div class="md:flex md:flex-row flex-wrap">
<div class="w-full md:w-3/4">
{{ content }}
</div>
<div class="col-md-4">
<div class="position-sticky" style="top: 2rem;">
<div class="w-full md:w-1/4">
<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>
<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>
</div>
@ -22,7 +26,7 @@ layout: default
<h4 class="fst-italic">Categories</h4>
<ol class="list-unstyled">
{% 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 %}
</ol>
</div>
@ -31,17 +35,17 @@ layout: default
<h4 class="fst-italic">Tags</h4>
<ol class="list-unstyled">
{% 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 %}
</ol>
</div>
<div class="mb-3 position-relative">
<div>
<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>
</div>
</div>
</div>
</div>
</div>

View File

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

View File

@ -1,5 +1,4 @@
---
layout: post
publisher: matmair
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
name: Matthias Mair
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!

View File

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

View File

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

View File

@ -1,5 +1,4 @@
---
layout: content
title: About
---
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
---

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
---
layout: content
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;
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
title: Blog
permalink: /blog
---
<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>
<div class="flex flex-wrap -m-12">
<div class="flex flex-wrap">
{% 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">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</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>
{{ post.date | date_to_string }} |
{% include partial/publisher_ref.html pub=post.publisher %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,11 +1,12 @@
---
layout: content
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 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.
- [Digikey](digikey)
- [Octopart](octopart)

View File

@ -1,8 +1,9 @@
---
layout: default
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>
{% for plugin in site.plugins %}
{% include plugin_card.html plugin=plugin %}