Skip to content

Commit 5522969

Browse files
committed
update
1 parent 8e0969a commit 5522969

File tree

8 files changed

+65
-88
lines changed

8 files changed

+65
-88
lines changed

README.md

Lines changed: 31 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,51 @@
1-
# Welcome to your Lovable project
1+
# security-commits.org
22

3-
## Project info
3+
[![Security Commits](https://img.shields.io/badge/Security%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://security-commits.org)
44

5-
**URL**: https://lovable.dev/projects/6afe7763-2aeb-46a8-9748-35b98b5fb3e3
5+
This repo is the home of the [SECOM specification](https://security-commits.org).
66

7-
## How can I edit this code?
7+
## Repo Layout
88

9-
There are several ways of editing your application.
9+
We use [HUGO](https://gohugo.io/) as static site generator, so we use the [directory structure](https://gohugo.io/getting-started/directory-structure/) HUGO proposes.
1010

11-
**Use Lovable**
11+
#### Our implementation
1212

13-
Simply visit the [Lovable Project](https://lovable.dev/projects/6afe7763-2aeb-46a8-9748-35b98b5fb3e3) and start prompting.
13+
* `./content`: contains all the versions of the specification.
14+
* `./content/next/`: contains the version of the specification (where all the changes SHOULD be made).
15+
* `./content/**/index.[lang].md`: contains the content of the specification, if a language is specified it's a translation.
1416

15-
Changes made via Lovable will be committed automatically to this repo.
17+
## Contributing
1618

17-
**Use your preferred IDE**
19+
We'd love your help refining the language of this specification,
20+
fixing typos, or adding more translations. Please don't hesitate
21+
to send a pull request.
1822

19-
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
23+
### Adding a translation
2024

21-
The only requirement is having Node.js & npm installed - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating)
25+
1. Create a new file in `./content/version/index.[lang].md` using the hugo command `hugo new [version]/index.[lang].md`.
26+
1. Ensure all files have the appropriate fields required (see others as an example)..
27+
1. Add the language to the `config.yaml` file (see others as an example).
2228

23-
Follow these steps:
29+
### Running project locally
2430

25-
```sh
26-
# Step 1: Clone the repository using the project's Git URL.
27-
git clone <YOUR_GIT_URL>
31+
There's a docker-compose.yml file ready that will help you to check if the website looks good!
32+
To run it make sure you have [docker-compose installed](https://docs.docker.com/compose/install/#install-compose) on your machine and just use the command `docker-compose up` to make it run locally.
2833

29-
# Step 2: Navigate to the project directory.
30-
cd <YOUR_PROJECT_NAME>
34+
Once the website will be compiled, you can see the website visiting `http://localhost:1313`
3135

32-
# Step 3: Install the necessary dependencies.
33-
npm i
36+
## Badges!
3437

35-
# Step 4: Start the development server with auto-reloading and an instant preview.
36-
npm run dev
37-
```
38-
39-
**Edit a file directly in GitHub**
40-
41-
- Navigate to the desired file(s).
42-
- Click the "Edit" button (pencil icon) at the top right of the file view.
43-
- Make your changes and commit the changes.
44-
45-
**Use GitHub Codespaces**
46-
47-
- Navigate to the main page of your repository.
48-
- Click on the "Code" button (green button) near the top right.
49-
- Select the "Codespaces" tab.
50-
- Click on "New codespace" to launch a new Codespace environment.
51-
- Edit files directly within the Codespace and commit and push your changes once you're done.
38+
Tell your users that you use the Conventional Commits specification:
5239

53-
## What technologies are used for this project?
54-
55-
This project is built with:
56-
57-
- Vite
58-
- TypeScript
59-
- React
60-
- shadcn-ui
61-
- Tailwind CSS
62-
63-
## How can I deploy this project?
64-
65-
Simply open [Lovable](https://lovable.dev/projects/6afe7763-2aeb-46a8-9748-35b98b5fb3e3) and click on Share -> Publish.
40+
```markdown
41+
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
42+
```
6643

67-
## Can I connect a custom domain to my Lovable project?
44+
## Thank you
6845

69-
Yes, you can!
46+
To **[Lorenzo D'Ianni](https://github.com/lorenzodianni)** for the great effort creating the CSS and the HTML for the new UI.
7047

71-
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
48+
To **[Netlify](https://www.netlify.com/)** to host our project, giving us a lot of [amazing built in functionality](https://www.netlify.com/features/) for free.
7249

73-
Read more here: [Setting up a custom domain](https://docs.lovable.dev/tips-tricks/custom-domain#step-by-step-guide)
50+
To **[semver.org](https://github.com/mojombo/semver.org)**: we used [semver.org](https://github.com/mojombo/semver.org) as a blueprint for
51+
the structure of this specification and the first version of the website.

docs/assets/index-mvUZ7FOg.css renamed to docs/assets/index-C6IzIce3.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-B_3GW_6-.js renamed to docs/assets/index-CBP-egic.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Security Commits</title>
77
<meta name="description" content="A convention and set of best practices for security commit messages." />
88
<meta name="author" content="Sofia Reis" />
9-
<link rel="icon" href="/security-commits.github.io/favicon.ico" />
9+
<link rel="icon" href="//refs/heads/main/docs/favicon.ico" />
1010

1111
<meta property="og:title" content="Security Commits" />
1212
<meta property="og:description" content="A convention and set of best practices for security commit messages." />
@@ -16,8 +16,8 @@
1616
<meta name="twitter:card" content="summary_large_image" />
1717
<meta name="twitter:site" content="" />
1818
<meta name="twitter:image" content="" />
19-
<script type="module" crossorigin src="/security-commits.github.io/assets/index-B_3GW_6-.js"></script>
20-
<link rel="stylesheet" crossorigin href="/security-commits.github.io/assets/index-mvUZ7FOg.css">
19+
<script type="module" crossorigin src="/assets/index-CBP-egic.js"></script>
20+
<link rel="stylesheet" crossorigin href="/assets/index-C6IzIce3.css">
2121
</head>
2222

2323
<body>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Security Commits</title>
77
<meta name="description" content="A convention and set of best practices for security commit messages." />
88
<meta name="author" content="Sofia Reis" />
9-
<link rel="icon" href="%BASE_URL%favicon.ico" />
9+
<link rel="icon" href="%BASE_URL%/refs/heads/main/docs/favicon.ico" />
1010

1111
<meta property="og:title" content="Security Commits" />
1212
<meta property="og:description" content="A convention and set of best practices for security commit messages." />

src/components/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Header = () => {
3131
<div className="flex items-center justify-between h-16">
3232
<div className="flex items-center">
3333
<Link to="/" className="text-primary font-bold text-xl">
34-
<span className="text-yellow-500">SEC</span>URITY <span className="text-yellow-500">CdOM</span>MITS
34+
SECURITY COMMITS
3535
</Link>
3636
</div>
3737

@@ -50,15 +50,15 @@ const Header = () => {
5050

5151
<Link to="/convention" className="text-foreground hover:text-primary transition-colors">Convention</Link>
5252

53-
{isHomePage ? (
53+
{/* {isHomePage ? (
5454
<a href="#examples" className="text-foreground hover:text-primary transition-colors">Examples</a>
5555
) : (
5656
<Link to="/" className="text-foreground hover:text-primary transition-colors">Examples</Link>
57-
)}
57+
)} */}
5858

5959
{/* <Link to="/reference" className="text-foreground hover:text-primary transition-colors">Reference</Link> */}
6060

61-
<Link to="/blog" className="text-foreground hover:text-primary transition-colors">Blog</Link>
61+
{/* <Link to="/blog" className="text-foreground hover:text-primary transition-colors">Blog</Link> */}
6262

6363
<Link to="/docs" className="text-foreground hover:text-primary transition-colors">Docs</Link>
6464

src/components/Hero.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { Button } from '@/components/ui/button';
32
import { FiArrowDown, FiGithub } from 'react-icons/fi';
43

@@ -10,7 +9,8 @@ const Hero = () => {
109
<div className="mx-auto max-w-7xl px-6 lg:px-8">
1110
<div className="mx-auto max-w-2xl text-center">
1211
<h1 className="text-4xl font-bold tracking-tight sm:text-6xl">
13-
<span className="text-primary">SECOM</span>: Security Commit Message Convention
12+
<span className="text-primary">SECOM</span><br />
13+
<span className="text-4xl">Security Commit Message Convention</span>
1414
</h1>
1515
<p className="mt-6 text-lg leading-8 text-muted-foreground">
1616
<strong>A standardized way to document security changes in your commit messages</strong>
@@ -21,11 +21,10 @@ const Hero = () => {
2121
<Button size="lg" className="flex items-center gap-2" asChild>
2222
<a href="/convention">
2323
Get Started
24-
<FiArrowDown className="ml-1" size={16} />
2524
</a>
2625
</Button>
2726
<Button variant="outline" size="lg" className="flex items-center gap-2" asChild>
28-
<a href="https://github.com/security-commits/secom" target="_blank" rel="noopener noreferrer">
27+
<a href="https://github.com/security-commits/" target="_blank" rel="noopener noreferrer">
2928
<FiGithub size={16} />
3029
View on GitHub
3130
</a>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { componentTagger } from "lovable-tagger";
55

66
// https://vitejs.dev/config/
77
export default defineConfig(({ mode }) => ({
8-
base: "/security-commits.github.io/",
8+
base: "/",
99
server: {
1010
host: "::",
1111
port: 8080,

0 commit comments

Comments
 (0)