11 Commits

Author SHA1 Message Date
Thilo Hohlt
567f7b0e1c Merge pull request #24 from archtika/devel
Set z-index for template nav and create basic files for community sta…
2024-12-13 17:49:45 +01:00
thiloho
7fddfbee95 Set z-index for template nav and create basic files for community standards 2024-12-13 17:38:21 +01:00
Thilo Hohlt
d26b0e756b Update issue templates 2024-12-13 17:08:30 +01:00
Thilo Hohlt
572c0924b1 Update README.md 2024-12-13 16:51:29 +01:00
Thilo Hohlt
420da199f1 Update index.html 2024-12-12 20:06:11 +01:00
Thilo Hohlt
8531578d43 Create CNAME 2024-12-12 18:30:31 +01:00
Thilo Hohlt
59a0967ec3 Update index.html 2024-12-12 18:20:36 +01:00
Thilo Hohlt
3545253719 Create static.yml 2024-12-12 18:08:47 +01:00
Thilo Hohlt
ed8351966b Merge pull request #23 from archtika/devel
Add website and update description texts
2024-12-12 17:56:32 +01:00
Thilo Hohlt
49c4aeb228 Update package.nix 2024-12-12 17:39:41 +01:00
thiloho
53d1ef06f1 Add website and update descriptions 2024-12-12 17:29:14 +01:00
15 changed files with 360 additions and 35 deletions

38
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

21
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,21 @@
#### Change description
<!--
Please provide a description above.
-->
#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
Web application changes:
- [ ] Run `npm run lint` to check code style
- [ ] Run `npm run format` to format code
- [ ] Run `npm run test` to verify end-to-end tests pass
Database changes:
- [ ] Run `npm run gents` if database structure was modified
- [ ] Run `formatsql` command to format SQL migrations (requires `nix develop .#api`)
Nix changes:
- [ ] Run `nix fmt` if files in `nix` directory were modified

43
.github/workflows/static.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './website'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

128
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
contact@archtika.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.

3
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,3 @@
# How to contribute
Please refer to the [documentation article on contributing](https://archtika.demo.archtika.com/archtika-documentation/articles/contributing) for all information.

View File

@@ -2,35 +2,8 @@
## About ## About
archtika is a FLOSS, modern, performant and lightweight CMS (Content Mangement System) in the form of a web application. It allows you to easily create, manage and publish minimal, responsive and SEO friendly blogging and documentation websites with official, professionally designed templates. archtika is a FLOSS, modern, performant, lightweight and self-hosted CMS (Content Mangement System) in the form of a web application. It allows you to easily create, manage and publish minimal, responsive and SEO friendly blogging and documentation websites using the templates provided. Contributors can also be added to a website, allowing multiple people to work on a project.
It is also possible to add contributors to your sites, which is very useful for larger projects where, for example, several people are constantly working on the documentation. ## Preview
## How it works [archtika-video-preview.webm](https://github.com/user-attachments/assets/7a43931c-6d9e-484a-8238-29e3d9bfb603)
For the backend, PostgreSQL is used in combination with PostgREST to create a RESTful API. JSON web tokens along with row-level security control authentication and authorisation flows.
The web application uses SvelteKit with SSR (Server Side Rendering) and Svelte version 5, currently in beta.
NGINX is used to deploy the websites, serving the static site files from the `/var/www/archtika-websites` directory. The static files can be found in this directory via the path `<user_id>/<website_id>`, which is dynamically created by the web application.
## Virtual machine for local development
The website directory used by the virtual machine needs to be created and the NodeJS process, which typically runs as the default system user, needs permission to write to this directory.
This can be achieved using the following commands:
```bash
sudo mkdir -p /var/www/archtika-websites
```
```bash
sudo chown $USER:$(id -gn) /var/www/archtika-websites
```
```bash
nix run .#dev-vm
```
For production, a separate `node` user can be created to run the systemd service for the node process; this user would have only the essential permissions to maintain the principle of least privilege.

3
SECURITY.md Normal file
View File

@@ -0,0 +1,3 @@
# Reporting Security Issues
To report a security issue, please use the GitHub Security Advisory ["Report a Vulnerability"](https://github.com/archtika/archtika/security/advisories/new) tab.

View File

@@ -7,9 +7,6 @@
}: }:
let let
pname = "archtika";
version = "1.0.0";
web = buildNpmPackage { web = buildNpmPackage {
name = "web-app"; name = "web-app";
src = ../web-app; src = ../web-app;
@@ -35,7 +32,10 @@ let
}; };
in in
symlinkJoin { symlinkJoin {
name = pname; name = "archtika";
pname = "archtika";
version = "1.0.0";
paths = [ paths = [
web web
api api

View File

@@ -38,7 +38,7 @@
<title>archtika | {routeName.replaceAll("/", " - ")}</title> <title>archtika | {routeName.replaceAll("/", " - ")}</title>
<meta <meta
name="description" name="description"
content="FLOSS, modern, performant and lightweight CMS (Content Mangement System) with predefined templates" content="FLOSS, modern, performant, lightweight and self-hosted CMS in the form of a web application"
/> />
</svelte:head> </svelte:head>

View File

@@ -4,6 +4,7 @@
} }
nav { nav {
z-index: 10;
position: sticky; position: sticky;
block-size: var(--space-xl); block-size: var(--space-xl);
display: flex; display: flex;

View File

@@ -4,6 +4,7 @@
} }
nav { nav {
z-index: 10;
position: sticky; position: sticky;
block-size: var(--space-xl); block-size: var(--space-xl);
display: flex; display: flex;

1
website/CNAME Normal file
View File

@@ -0,0 +1 @@
archtika.com

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath81">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path81"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(1.8723891,0.38003672,-0.50170515,1.4183164,28.692837,-108.9927)" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath82">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path82"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="rotate(180,159.89124,183.45477)" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath83">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path83"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="rotate(180,96.108761,200.54523)" />
</clipPath>
</defs>
<g
id="layer1"
style="display:inline">
<g
id="g83"
transform="matrix(1.3333333,0,0,1.3333333,-85.333319,-8.1031545e-6)"
style="display:inline">
<path
style="fill:#4ae086;fill-opacity:1"
id="path49"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(-1.8723891,-0.5793192,0.50170515,-2.1620487,271.33842,745.26623)"
clip-path="url(#clipPath83)" />
<path
style="display:inline;fill:#00a056;fill-opacity:1"
id="path50"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(-1.8723891,-0.5793192,0.50170515,-2.1620487,527.33841,745.26623)"
clip-path="url(#clipPath82)" />
<path
id="path71"
style="display:inline;fill:#17c171;fill-opacity:1"
transform="matrix(1,0,0,1.5243769,83.968743,-67.120251)"
d="m 236.03126,128.00002 -64.00001,83.96874 -64,-83.96874 64,-83.968747 z"
clip-path="url(#clipPath81)" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

24
website/index.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<link
rel="icon"
href="./archtika-logo-512x512.svg"
/>
<title>archtika CMS</title>
<meta name="description" content="FLOSS, modern, performant, lightweight and self-hosted CMS in the form of a web application" />
</head>
<body class="min-h-screen bg-neutral-50 bg-[url('./archtika-logo-512x512.svg')] bg-bottom bg-no-repeat bg-blend-luminosity">
<div class="mx-auto max-w-fit bg-neutral-50 p-8">
<h1 class="text-2xl font-bold text-neutral-900 sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl 2xl:text-7xl">archtika</h1>
<p class="mt-2 text-xl text-neutral-700 sm:text-2xl">FLOSS, modern, performant, lightweight and self&#8209;hosted CMS</p>
<div class="mt-8 flex flex-wrap gap-6 sm:justify-end">
<a href="https://github.com/archtika/archtika" class="text-neutral-900 rounded-full bg-neutral-200 px-4 py-2 outline outline-1 outline-offset-4 outline-neutral-300 hover:bg-neutral-300 hover:underline focus:outline-2 focus:outline-neutral-900">GitHub</a>
<a href="https://archtika.demo.archtika.com/archtika-documentation" class="text-neutral-900 rounded-full bg-neutral-200 px-4 py-2 outline outline-1 outline-offset-4 outline-neutral-300 hover:bg-neutral-300 hover:underline focus:outline-2 focus:outline-neutral-900">Documentation</a>
</div>
</div>
</body>
</html>