Skip to content

Commit

Permalink
Merge pull request #1 from code0-tech/create-docs
Browse files Browse the repository at this point in the history
Add docs as a documentation repository
  • Loading branch information
Taucher2003 authored Dec 18, 2023
2 parents 06d63ca + c2cbf7d commit f869141
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
GL_RUNNER_TOKEN: ${{ secrets.GL_RUNNER_TOKEN }}
GL_API_TOKEN: ${{ secrets.GL_API_TOKEN }}
SHOW_JOB_LOGS: all
env:
GLPA_C0_TRIGGER_PROJECT: telescopium
GLPA_C0_TRIGGER_SHA: ${{ github.sha }}
GLPA_C0_TRIGGER_REF: ${{ github.ref }}

- name: Find existing comment
uses: peter-evans/find-comment@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: git clone https://github.com/${{ github.repository }} .
- run: git remote add gitlab https://gitlab.com/code0-tech/docs.git
- run: git remote add gitlab https://gitlab.com/code0-tech/telescopium.git
- run: >-
git
-c credential.helper='!f() { sleep 1; echo "username=${{ secrets.GL_API_USER }}"; echo "password=${{ secrets.GL_API_TOKEN }}"; }; f'
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -eo pipefail

rm -rf dist/

build_project() {
Expand Down
2 changes: 1 addition & 1 deletion ci-template.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
docs:
stage: test
trigger:
project: code0-tech/docs
project: code0-tech/telescopium
strategy: depend
variables:
C0_TRIGGER_PROJECT: $CI_PROJECT_NAME
Expand Down
2 changes: 2 additions & 0 deletions clone_projects.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -eo pipefail

shopt -s extglob
shopt -s dotglob

Expand Down
7 changes: 7 additions & 0 deletions docs/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Welcome to the Documentation for Telescopium
description: Find out how the documentation page works
template: splash
---

Telescopium is the documentation page for Code0.
3 changes: 3 additions & 0 deletions docs/starlight.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"title": "Telescopium"
}
1 change: 1 addition & 0 deletions documentation_repositories.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/code0-tech/telescopium
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "docs",
"name": "telescopium",
"type": "module",
"version": "0.0.1",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions projects/docs-landing-page/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ template: splash

import { Card, CardGrid } from '@astrojs/starlight/components';

## Internal documentation

<CardGrid stagger>
<Card title='<a href="/base-ui/">Base-UI</a>' icon="document">
The library implementing our design.
<Card title='<a href="/telescopium/">Telescopium</a>' icon="document">
Documentation about this documentation page.
</Card>
</CardGrid>

0 comments on commit f869141

Please sign in to comment.