Skip to content

Commit 61d3ffb

Browse files
Merge pull request #1 from SinSo-API/dev
init web build
2 parents 3a90b10 + 5edade2 commit 61d3ffb

File tree

8 files changed

+665
-2
lines changed

8 files changed

+665
-2
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write # Add this to allow pushing to gh-pages
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: build
18+
env:
19+
GITHUB_PAT: ${{ github.token }}
20+
REPO: "getzola/zola"
21+
VERSION: "latest"
22+
MATCH: "zola-.+-x86_64-unknown-linux-gnu.tar.gz$"
23+
RENAME: "zola.tgz"
24+
shell: bash
25+
run: |
26+
curl -sL --fail \
27+
-H "Accept: application/vnd.github.v3+json" \
28+
-H "Authorization: Bearer ${GITHUB_PAT}" \
29+
"https://api.github.com/repos/${REPO}/releases/${VERSION}" \
30+
| jq -r ".assets | .[] | select(.name | test(\"${MATCH}\")) | .url" \
31+
| tee asset.url
32+
curl -sL --fail \
33+
-H "Accept: application/octet-stream" \
34+
-H "Authorization: Bearer ${GITHUB_PAT}" \
35+
-o "${RENAME}" \
36+
"$(cat asset.url)"
37+
tar -zxvf zola.tgz
38+
chmod +x zola
39+
./zola build
40+
- name: Deploy to GitHub Pages
41+
uses: peaceiris/actions-gh-pages@v3
42+
if: ${{ github.ref == 'refs/heads/main' }}
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: ./public

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
# SinSo-API-Web
2-
Official website for the SinSo API
1+
# SinSo API Website
2+
3+
Official landing page for **SinSo API** - the largest open-source Sinhala Songs Lyrics API.
4+
5+
## 🌐 About
6+
7+
This is the static website repository for SinSo API, providing information about the API, its features, endpoints, and how to get started. The website serves as the main entry point for developers interested in integrating Sinhala song lyrics into their applications.
8+
9+
## 🚀 Features
10+
11+
- Clean and modern design
12+
- Responsive layout
13+
- Comprehensive API documentation overview
14+
- Feature highlights and benefits
15+
- API endpoints reference
16+
- Contact and contribution information
17+
- Copyright and legal notices
18+
19+
## 🤝 Contributing
20+
21+
Contributions are welcome! Feel free to:
22+
- Report bugs or issues
23+
- Suggest improvements to the website design
24+
- Submit pull requests for fixes or enhancements
25+
26+
## 📧 Contact
27+
28+
For questions or support, please reach out through:
29+
- Email: [vishal@vishalrashmika.com]
30+
- GitHub: [Open an issue](https://github.com/SinSo-API/SinSo-API/issues)
31+
32+
## ☕ Support
33+
34+
If you find this project helpful, consider supporting us:
35+
36+
[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/vishalrashmika/)
37+
38+
---
39+
40+
© 2025 SinSo API. All rights reserved. | All song lyrics are property of their respective artists and creators.

config.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
base_url = "./"
2+
title = "SinSo API"
3+
description = "Largest Open-Source Sinhala Songs Lyrics API – Fast, Reliable & Ready for Integration"
4+
compile_sass = false
5+
build_search_index = false
6+
7+
[extra]
8+
# Contact Information
9+
email_contact = "vishal@vishalrashmika.com"
10+
11+
# Social Links
12+
github = "https://github.com/SinSo-API"
13+
14+
# External Links
15+
docs_url = "https://api.sinso.vishalrashmika.com/v1/docs/"

content/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+++
2+
title = "SinSo API"
3+
description = "Largest Open-Source Sinhala Songs Lyrics API – Fast, Reliable & Ready for Integration"
4+
+++

netlify.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[build]
2+
# This assumes that the Zola site is in a docs folder. If it isn't, you don't need
3+
# to have a `base` variable but you do need the `publish` and `command` variables.
4+
# base = ""
5+
publish = "public"
6+
command = "zola build"
7+
8+
[build.environment]
9+
# Set the version name that you want to use and Netlify will automatically use it.
10+
ZOLA_VERSION = "0.17.0"
11+
12+
# The magic for deploying previews of branches.
13+
# We need to override the base url with whatever url Netlify assigns to our
14+
# preview site. We do this using the Netlify environment variable
15+
# `$DEPLOY_PRIME_URL`.
16+
17+
[context.deploy-preview]
18+
command = "zola build --base-url $DEPLOY_PRIME_URL"

0 commit comments

Comments
 (0)