Skip to content

Commit

Permalink
Release 0.1.1:
Browse files Browse the repository at this point in the history
* add p8g.h to p8g.zip
* add logo to documentation
* change documentation color theme
* fix typo in HelloRectangle.java
* update readme
  • Loading branch information
bernhardfritz committed Apr 21, 2022
1 parent be52107 commit ca047fe
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: ci
on:
push:
branches:
- 'master'
tags:
- 'v*.*.*'
jobs:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
cd java
make build/p8g.jar
rm -rf build/io
zip -jr p8g.zip build
zip -jr p8g.zip build ../c/p8g.h
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# p8g - 2D graphics library
# Precessing

<p align="center">
<a href="https://bernhardfritz.github.io/p8g" target="_blank">
<img alt="Precessing logo" src="docs/static/img/logo-dark.png">
</a>
</p>

<p align="center">
Precessing, also known as <b>p8g</b>, is a general-purpose 2D graphics library.
</p>

| Beginner friendly | Language-agnostic | Cross-platform |
| :--------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------: |
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/get-started/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class HelloRectangle extends Sketch {
@Override
public void draw() {
background(100);
rect(50, 50, 100, 100)
rect(50, 50, 100, 100);
}

public static void main(String[] args) {
Expand Down
13 changes: 9 additions & 4 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'p8g',
tagline: '2D graphics library',
title: 'Precessing',
tagline: 'Precessing, also known as p8g, is a general-purpose 2D graphics library.',
url: 'https://bernhardfritz.github.io',
baseUrl: '/p8g/',
onBrokenLinks: 'throw',
Expand All @@ -24,7 +24,7 @@ const config = {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/bernhardfritz/p8g',
editUrl: 'https://github.com/bernhardfritz/p8g/edit/master/docs',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand All @@ -37,7 +37,12 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'p8g',
title: 'Precessing',
logo: {
alt: 'Precessing logo',
src: 'img/logo-light.png',
srcDark: 'img/logo-dark.png',
},
items: [
{
type: 'doc',
Expand Down
28 changes: 14 additions & 14 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-color-primary: #0564ff;
--ifm-color-primary-dark: #0059ea;
--ifm-color-primary-darker: #0054dd;
--ifm-color-primary-darkest: #0045b6;
--ifm-color-primary-light: #1f74ff;
--ifm-color-primary-lighter: #2c7cff;
--ifm-color-primary-lightest: #5394ff;
--ifm-code-font-size: 95%;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
html[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--ifm-color-primary: #fa9b00;
--ifm-color-primary-dark: #e18b00;
--ifm-color-primary-darker: #d48400;
--ifm-color-primary-darkest: #af6c00;
--ifm-color-primary-light: #ffa614;
--ifm-color-primary-lighter: #ffaa21;
--ifm-color-primary-lightest: #ffb946;
}

.docusaurus-highlight-code-line {
Expand Down
Binary file removed docs/static/img/docusaurus.png
Binary file not shown.
Binary file modified docs/static/img/favicon.ico
Binary file not shown.
Binary file added docs/static/img/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca047fe

Please sign in to comment.