Skip to content

Commit

Permalink
do a prettier pass on everything in the repository (#50)
Browse files Browse the repository at this point in the history
* do a prettier pass on everything in the repository

* fix issue templates

* fix some formatting
  • Loading branch information
cswimr authored Dec 16, 2024
1 parent f968557 commit 0409732
Show file tree
Hide file tree
Showing 33 changed files with 1,051 additions and 819 deletions.
30 changes: 16 additions & 14 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
---
name: Bug report
about: Something's wrong
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
**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]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Website version hash (found in footer)

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Website version hash (found in footer)

**Additional context**
**Additional context**
Add any other context about the problem here.
15 changes: 7 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
name: Feature request
about: Suggest an idea
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
**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**
**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
**Additional context**
Add any other context or screenshots about the feature request here.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ public/
.direnv/
.devenv/
node_modules/
.mypy_cache/
resources/
hugo_stats.json

Expand Down
27 changes: 11 additions & 16 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{
"proseWrap": "never",
"plugins": [
"prettier-plugin-go-template",
"prettier-plugin-tailwind-css"
],
"overrides": [
{
"files": [
"*.html"
],
"options": {
"parser": "go-template"
}
}
],
"tailwindStylesheet": "./assets/css/styles.css"
"proseWrap": "never",
"plugins": ["prettier-plugin-go-template", "prettier-plugin-tailwind-css"],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template"
}
}
],
"tailwindStylesheet": "./assets/css/styles.css"
}
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
WIP
refer to the readme or contact smallketchup82 for more information
WIP refer to the readme or contact smallketchup82 for more information
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Galaxypedia

This is the repository for the Galaxypedia rewrite in Hugo. The aim is to recreate the Galaxypedia using the Hugo static site generator while retaining familiar functionality as on the MediaWiki site.

## Morale

Present-day Galaxypedia is built on the MediaWiki software, which is both powerful and expensive to operate. It relies on PHP and MySQL, which are resource-intensive, making MediaWiki as heavy as it is powerful.

MediaWiki is also highly complex, heavily relying on templates, extensions, themes, and other customizations to ensure smooth functionality. This extensive codebase makes it challenging to maintain.
Expand All @@ -13,11 +15,13 @@ In light of these challenges, we are exploring the possibility of transitioning
We believe that a Hugo-based Galaxypedia will be easier to maintain, update, and use. Moreover, it will be developed and maintained by us, for us.

## Will this replace the Galaxypedia?

It's complicated. The Hugo version of the Galaxypedia will be a separate entity from the MediaWiki version. The MediaWiki version will still be up and running for as long as the hugo version is in development. Once the Hugo version is ready, has most and/or all of the content and features of the MediaWiki version we will consider replacing the MediaWiki version with the Hugo version.

For now, it's up in the air.

## Features

Some features that the Hugo version has over the MediaWiki version are:

- Autofilled ship infobox
Expand Down Expand Up @@ -47,18 +51,23 @@ Some features that the Hugo version has over the MediaWiki version are:
- Also we finally don't have to deal with bot accounts spamming the site with nonsense. This is a huge relief.

## Contributing

See the [wiki](https://github.com/Galaxypedia-Wiki/Galaxypedia-Hugo/wiki)

### To the content

Contributing to the content is easy. If you want to make a change to an existing page, you can easily use the GitHub web editor, make your changes, and let it do the heavy work of forking and creating a pull request.

If you want to do anything more than that, and most likely you will, you'll need to set up a local development environment. This is easy to do, but in true Node.JS fashion, you'll need to install a bunch of stuff.
If you want to do anything more than that, and most likely you will, you'll need to set up a local development environment. This is easy to do, but in true Node.JS fashion, you'll need to install a bunch of stuff.

### To the platform
If you want to contribute to the platform, which means the site itself (styling, functionality, etc.),

If you want to contribute to the platform, which means the site itself (styling, functionality, etc.),

If you are using Nix or NixOS, we include a Nix Flake you can use to get up and running easily. Just run [`direnv allow`](https://github.com/nix-community/nix-direnv) in the repository directory, and you're good to go. You do need to have [`devenv`](https://devenv.sh/) installed.

## Licensing

Everything in the `content` directory is protected by the [CC-BY-NC 4.0 License](https://creativecommons.org/licenses/by-nc/4.0/).

All other directories and files are [MIT Licensed](https://en.wikipedia.org/wiki/MIT_License).
1 change: 1 addition & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

This is a default page! You should probably replace this with your own content :P
16 changes: 16 additions & 0 deletions archetypes/wiki/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,60 @@ title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

{{/* DO NOT PUT ANYTHING ABOVE THE SHIP INFOBOX!!! */}}

{{< shipInfobox >}}

Put any notices here. Delete this line if there are no notices

The {{ replace .File.ContentBaseName "-" " " | title }} is a <main characteristics> <ship class> Ship that is <good use cases>.

## Description

<Description of the ship>

## Appearance

<Appearance of the ship>

## Analysis

### Advantages

- Advantages of the ship. Don't just list prominent stats, explain how certain stats or abilities can be used to the player's advantage.

### Disadvantages

- Disadvantages of the ship. Don't only list shortcomings, explain how certain matchups or situations can disadvantage the ship. For example, if a ship is slow, it would be susceptible to swarms or flanking.

## Strategy

### Using

Strategies for using the ship. Explain the different ways to use the ship, how to excel while using it, how to maximize its potential, and how to play to its strengths.

### Countering

Strategies for countering the ship. Explain the different ways to counter the ship, how to exploit its weaknesses, and how to minimize its potential.

## Gallery

Optional. Delete this section if there are no additional images to provide for the ship.

## Changelog

List changes in ascending order. Delete this section if there are no changes to list at this time.

- Version 3.0.0: Buffed speed
- Version 2.0.0: Nerfed damage
- Version 1.0.0: Added ship

## Facts

Placeholders:

- The first person to lose this ship was <player name>
- This ship is the 1000th ship to be added to the game

## See Also

Links to other ships that are similar or otherwise related to this ship. Delete this section if there are no related ships to link to. Some examples of what to link to include ships that are in the same class, ships that counter this ship, ships that this ship counters, ships that are similar in playstyle, ships that are direct upgrades or downgrades, etc.
66 changes: 33 additions & 33 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}

:root {
--color-bg: #000;
--color-bg2: #111;
--color-bg3: #222;
--color-bg4: #333;
--color-bg5: #444;
--color-bg: #000;
--color-bg2: #111;
--color-bg3: #222;
--color-bg4: #333;
--color-bg5: #444;
}

body {
Expand All @@ -34,62 +34,62 @@ h6 {
}

.content {
@apply w-10/12 mx-auto p-4 rounded-lg my-4 border;
background-color: var(--color-bg2);
border-color: var(--color-bg4);
animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 250ms;
@apply w-10/12 p-4 mx-auto my-4 border rounded-lg;
background-color: var(--color-bg2);
border-color: var(--color-bg4);
animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 250ms;
}

@keyframes fadeIn {
from {
box-shadow: 0 0 0px var(--color-bg4);
}
to {
box-shadow: 0 0 30px var(--color-bg4);
}
from {
box-shadow: 0 0 0px var(--color-bg4);
}
to {
box-shadow: 0 0 30px var(--color-bg4);
}
}

/* Custom Font Loading */
@font-face {
font-family: "Rocket Rinder";
src: url("/fonts/Rocket Rinder.otf") format('opentype')
font-family: "Rocket Rinder";
src: url("/fonts/Rocket Rinder.otf") format("opentype");
}

@font-face {
font-family: "OriginTech";
src: url("/fonts/OriginTech personal use.ttf") format('truetype')
font-family: "OriginTech";
src: url("/fonts/OriginTech personal use.ttf") format("truetype");
}

@font-face {
font-family: "Ethno Centric";
src: url("/fonts/ethnocentric rg.ttf") format('truetype')
font-family: "Ethno Centric";
src: url("/fonts/ethnocentric rg.ttf") format("truetype");
}

@font-face {
font-family: "Star Jedi";
src: url("/fonts/Starjedi.ttf") format('truetype')
font-family: "Star Jedi";
src: url("/fonts/Starjedi.ttf") format("truetype");
}

@font-face {
font-family: "Android";
src: url("/fonts/Android/Android.ttf") format('truetype');
font-style: normal;
font-family: "Android";
src: url("/fonts/Android/Android.ttf") format("truetype");
font-style: normal;
}

@font-face {
font-family: "Android";
src: url("/fonts/Android/Android Italic.ttf") format('truetype');
font-style: italic;
font-family: "Android";
src: url("/fonts/Android/Android Italic.ttf") format("truetype");
font-style: italic;
}

@font-face {
font-family: "Android Hollow";
src: url("/fonts/Android/Android Hollow.ttf") format('truetype');
font-family: "Android Hollow";
src: url("/fonts/Android/Android Hollow.ttf") format("truetype");
}

@font-face {
font-family: "Olga";
src: url("/fonts/Olga.ttf") format('truetype');
font-family: "Olga";
src: url("/fonts/Olga.ttf") format("truetype");
}

@import "components/markdown.css";
2 changes: 2 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Super Capitals
</div>

## Looking to join the Discord?

[Galaxy](https://galaxy.casa/) has a number of Discord Servers you can join as well as a bot that shares information from Galaxypedia straight to Discord.

[Galaxy Discord](https://galaxy.galaxypedia.org)
Expand All @@ -67,4 +68,5 @@ Super Capitals
[Galaxy Info](https://info.galaxy.casa/)

## Want to edit?

WIP
3 changes: 2 additions & 1 deletion content/wiki/art/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Art
---

# Overview

Over the years, Galaxy\'s community and staff have made some great art for the game. This includes images, videos, [music](music "wikilink"), and more. This page serves as a gallery of visual art (for audio, see [Music](Music "wikilink")). This page is largely maintained by [Glowstone_Guy](https://galaxypedia.org/wiki/User:Glowstone_Guy), but if you have art to submit, please feel free to add it to the page, or ask a [Galaxypedia Staff Member](https://discord.galaxypedia.org) for assistance if you\'re not sure how.
Expand All @@ -15,7 +16,7 @@ This section covers art used in the game\'s thumbnail, loading screens, or the b

This section contains images pulled from [1](https://robloxgalaxy.wiki/logos). These logos are used around the Galaxypedia and sometimes in game as well.

<File:Galaxy*pfp_2.png%7Cthumb>\|\*\*Creator: \_Unknown*** - This image was originally used as a thumbnail for the game. It features the pilot of an unknown ship in the heat of battle, with explosions in the background. <File:Logo2.png%7Cthumb>\|**Creator: _Unknown_** - This is similar to the first image, but with \"WIKIA\" written in large text. It is currently used as the branding image for the Galaxypedia. <File:Galaxypediabanner.png%7Cthumb>\|**Creator: _Unknown_** - This picture shows a silhouette of a [Prototype X-1](Prototype_X-1 "wikilink") on a light gray background. Written in white text is \"GALAXYPEDIA\" \"THE NEW ERA OF THE GALAXY WIKI\". <File:Galaxypedialogo.png%7Cthumb>\|**Creator: \*Unknown**\'\' - This image is very similar to the previous one, with the same silhouette and the same text. However, the text and the background image are in different proportion and the entire image is scaled down. <File:Whydothistomemediawiki.png%7Cthumb>\|**Creator:\*Unknown\*\*\'\' - A scaled down and square version of the previous image, this was the logo for the now discontinued desktop version of the Galaxypedia. The file is named \"whydothistomemediawiki.ico\", indicating that when Sugondese, the creator of the application, was in the process of making it, he was having some issues with Mediawiki, which is the framework for the Galaxypedia.
<File:Galaxy\*pfp\*2.png%7Cthumb>\|\*\*Creator: \_Unknown**\* - This image was originally used as a thumbnail for the game. It features the pilot of an unknown ship in the heat of battle, with explosions in the background. <File:Logo2.png%7Cthumb>\|**Creator: \_Unknown**\* - This is similar to the first image, but with \"WIKIA\" written in large text. It is currently used as the branding image for the Galaxypedia. <File:Galaxypediabanner.png%7Cthumb>\|**Creator: _Unknown_** - This picture shows a silhouette of a [Prototype X-1](Prototype_X-1 "wikilink") on a light gray background. Written in white text is \"GALAXYPEDIA\" \"THE NEW ERA OF THE GALAXY WIKI\". <File:Galaxypedialogo.png%7Cthumb>\|**Creator: \*Unknown**\'\' - This image is very similar to the previous one, with the same silhouette and the same text. However, the text and the background image are in different proportion and the entire image is scaled down. <File:Whydothistomemediawiki.png%7Cthumb>\|**Creator:\*Unknown\*\*\'\' - A scaled down and square version of the previous image, this was the logo for the now discontinued desktop version of the Galaxypedia. The file is named \"whydothistomemediawiki.ico\", indicating that when Sugondese, the creator of the application, was in the process of making it, he was having some issues with Mediawiki, which is the framework for the Galaxypedia.

# Lore Size Comparisions {#lore_size_comparisions}

Expand Down
2 changes: 2 additions & 0 deletions content/wiki/deity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ title: Deity
---

{{< shipInfobox >}}

{{< notices/superCapitalShip >}}

The **_Deity_** is an extremely maneuverable [Super Capital Ship](:Category:Super_Capital_Ship "wikilink") that is extremely adept at brawling against other capital ships.

## Description
Expand Down
Loading

0 comments on commit 0409732

Please sign in to comment.