Skip to content

Commit d831fd8

Browse files
committed
update the styling
1 parent 4e11e93 commit d831fd8

File tree

5 files changed

+26
-58
lines changed

5 files changed

+26
-58
lines changed

internal/website/docs/_layouts/default.html renamed to internal/website/_layouts/default.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
nav a { margin-left: 24px; color: #333; text-decoration: none; font-weight: 500; }
1313
nav a:hover { color: #007d9c; }
1414
main { max-width: 800px; margin: 2rem auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
15+
pre { background: whitesmoke; padding: 10px; border-radius: 5px; }
1516
</style>
1617
</head>
1718
<body>
1819
<header>
1920
<a class="logo-link" href="/">
20-
<img src="/logo.png" alt="Go Micro Logo">
21+
<img src="/images/logo.png" alt="Go Micro Logo">
2122
<span style="font-size: 1.3rem; font-weight: bold; color: #222;">Go Micro</span>
2223
</a>
2324
<nav>
24-
<a href="/internal/website/docs/">Docs</a>
25+
<a href="/docs/">Docs</a>
2526
<a href="https://github.com/micro/go-micro" target="_blank" rel="noopener">GitHub</a>
2627
<a href="/">Home</a>
2728
</nav>

internal/website/docs/architecture.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
layout: default
33
---
44

5-
6-
## Example Usage
7-
8-
Here's a minimal Go Micro service demonstrating the architecture:
9-
10-
```go
11-
package main
12-
13-
import (
14-
"go-micro.dev/v5"
15-
"log"
16-
)
17-
18-
func main() {
19-
service := micro.NewService(
20-
micro.Name("example"),
21-
)
22-
service.Init()
23-
if err := service.Run(); err != nil {
24-
log.Fatal(err)
25-
}
26-
}
27-
```
285
## Architecture
296

307
An overview of the Go Micro architecture
@@ -67,3 +44,26 @@ in the plugins repo. State and persistence becomes a core requirement beyond pro
6744
## Design
6845

6946
We will share more on architecture soon
47+
48+
## Example Usage
49+
50+
Here's a minimal Go Micro service demonstrating the architecture:
51+
52+
```go
53+
package main
54+
55+
import (
56+
"go-micro.dev/v5"
57+
"log"
58+
)
59+
60+
func main() {
61+
service := micro.NewService(
62+
micro.Name("example"),
63+
)
64+
service.Init()
65+
if err := service.Run(); err != nil {
66+
log.Fatal(err)
67+
}
68+
}
69+
```
File renamed without changes.

internal/website/docs/layout.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

internal/website/images/logo.png

8.5 KB
Loading

0 commit comments

Comments
 (0)