Skip to content

Commit d2073c8

Browse files
committed
chore: Add new .NET template documentation and remove outdated files
1 parent 8ead033 commit d2073c8

File tree

32 files changed

+154
-143
lines changed

32 files changed

+154
-143
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Use the official Nginx image from the Docker Hub
2+
FROM nginx:latest
3+
4+
# Copy custom configuration file from the current directory
5+
# to the Nginx configuration directory
6+
COPY nginx.conf /etc/nginx/nginx.conf
7+
8+
# Copy website files to the default Nginx public directory
9+
COPY public /usr/share/nginx/html
10+
11+
# Expose port 80 to the outside world
12+
EXPOSE 80
13+
14+
# Start Nginx when the container has provisioned
15+
CMD ["nginx", "-g", "daemon off;"]

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@
2222
10. Once ready, send a Pull Request.
2323

2424

25+
# How to build and run on Docker
26+
27+
1. Clone the repository
28+
2. Run the following command to build the docker image
29+
```bash
30+
docker build -t genocs/genocs-library-docs .
31+
```
32+
3. Run the following command to run the docker image
33+
```bash
34+
docker run -d -p 1313:80 genocs/genocs-library-docs
35+
```
36+
4. Navigate to localhost:1313 to view the documentation
37+
38+
5. push the image to docker hub
39+
```bash
40+
docker login
41+
docker tag genocs/genocs-library-docs genocs/genocs-library-docs:latest
42+
docker push genocs/genocs-library-docs:latest
43+
```
44+
45+
46+
2547
## Acknowledgment
2648

2749
- Original theme [h-enk doks](https://github.com/h-enk/doks)

config/_default/menus/menus.en.toml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,31 @@
2828
weight = 10
2929

3030
[[dotnet-templates]]
31-
name = "Fundamentals"
32-
identifier = "fundamentals"
33-
url = "/dotnet-templates/fundamentals/"
31+
name = "Multitenancy"
32+
identifier = "multitenancy-dotnet-template"
33+
url = "/dotnet-templates/multitenancy-template/"
3434
weight = 20
3535

36+
[[dotnet-templates]]
37+
name = "Onion"
38+
identifier = "onion-dotnet-template"
39+
url = "/dotnet-templates/onion-template/"
40+
weight = 30
41+
42+
43+
[[dotnet-templates]]
44+
name = "Library"
45+
identifier = "library-dotnet-template"
46+
url = "/dotnet-templates/library-template/"
47+
weight = 40
48+
49+
3650
[[dotnet-templates]]
3751
name = "Tutorials"
3852
identifier = "tutorials"
3953
url = "/dotnet-templates/tutorials/"
40-
weight = 30
41-
42-
####################################
54+
weight = 50
4355

44-
## [[main]]
45-
## name = "Microservices"
46-
## identifier = "microservices"
47-
## url = "/dotnet-microservices-template/"
48-
## weight = 50
4956

5057
####################################
5158

@@ -55,12 +62,16 @@
5562
url = "/blazor-template/general/getting-started/"
5663
weight = 60
5764

65+
####################################
66+
5867
[[main]]
5968
name = "Containers"
6069
identifier = "containers"
6170
url = "/containers/"
6271
weight = 70
6372

73+
####################################
74+
6475
[[main]]
6576
name = "Contact"
6677
identifier = "contact"

config/_default/params.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ navBarLogo = "/images/icon.png"
1313
# docsVersion = "1"
1414

1515
# Search
16-
mainSections = ["introduction", "cli", "library", "blog", "blazor-template", "dotnet-templates", "dotnet-microservices-template", "containers" ]
16+
mainSections = ["introduction", "cli", "library", "dotnet-templates", "blazor", "containers" ]
1717

1818
## Open Graph
1919
images = ["logo.png"]

content/en/dotnet-microservice-template/_index.md renamed to content/en/dotnet-templates/library-template/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title : ".NET Microservice Template"
2+
title : ".NET Library Template"
33
description: "Essential Documentation for the .NET Microservice Template."
44
lead: ""
55
date: 2021-08-24T11:40:05+05:30
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: "Overview"
3+
description: ".NET Microservice Template built with .NET 8.0. Incorporates the most essential Packages your projects will ever need. Follows Clean Architecture Principles."
4+
lead: ".NET Microservice Template built with .NET 8.0. Incorporates the most essential Packages your projects will ever need. Follows Clean Architecture Principles."
5+
date: 2023-05-13T15:51:03+02:00
6+
lastmod: 2024-02-29T19:44:03+02:00
7+
draft: false
8+
images: []
9+
menu:
10+
dotnet-templates:
11+
identifier: "library-dotnet-template-general-overview"
12+
name: "Overview"
13+
parent: "library-dotnet-template"
14+
weight: 1
15+
toc: true
16+
---
17+
18+
## What's Genocs's .NET Microservice Template?
19+
20+
Github Repository URI : [Genocs/dotnet-microservice-template](https://github.com/Genocs/microservice-template)
21+
22+
`Star the above repository and support me!`

content/en/dotnet-templates/fundamentals/_index.md renamed to content/en/dotnet-templates/multitenancy-template/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title : "Fundamentals"
2+
title : "Multitenancy"
33
description: "Genocs Library's Web API Fundamental Features Explained."
44
date: 2023-05-13 10:26:50+02:00
55
lastmod: 2023-05-13 10:26:50+02:00

content/en/dotnet-templates/fundamentals/application-startup.md renamed to content/en/dotnet-templates/multitenancy-template/application-startup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ menu:
1010
dotnet-templates:
1111
identifier: "application-startup"
1212
name: "Application Startup"
13-
parent: "fundamentals"
14-
weight: 11
13+
parent: "multitenancy-dotnet-template"
14+
weight: 1
1515
toc: true
1616
---
1717

content/en/dotnet-templates/fundamentals/caching.md renamed to content/en/dotnet-templates/multitenancy-template/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ menu:
1010
dotnet-templates:
1111
identifier: "caching"
1212
name: "Caching"
13-
parent: "fundamentals"
14-
weight: 11
13+
parent: "multitenancy-dotnet-template"
14+
weight: 2
1515
toc: true
1616
---
1717

content/en/dotnet-templates/fundamentals/configurations.md renamed to content/en/dotnet-templates/multitenancy-template/configurations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ menu:
1010
dotnet-templates:
1111
identifier: "configurations"
1212
name: "Configurations"
13-
parent: "fundamentals"
14-
weight: 8
13+
parent: "multitenancy-dotnet-template"
14+
weight: 3
1515
toc: true
1616
---
1717

0 commit comments

Comments
 (0)