Skip to content

Commit

Permalink
Merge pull request #575 from dzcode-io/574-rename-project-v2-to-projects
Browse files Browse the repository at this point in the history
renamed `projects-v2` back to `projects`
  • Loading branch information
ZibanPirate authored Apr 11, 2023
2 parents 7503e0f + 333d5b5 commit 7eb59eb
Show file tree
Hide file tree
Showing 46 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ data:
# Add 'project' to any changes within 'data/models/projects' folder or any subfolders
project:
- data/models/projects/**/*
- data/models/projects-v2/**/*

# Add 'article' to any changes within 'data/models/articles' folder or any subfolders
article:
Expand Down
6 changes: 1 addition & 5 deletions api/src/data/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import { DataArticleEntity, DataDocumentationEntity, DataProjectEntity } from ".
@Service()
export class DataService {
public listProjects = async (): Promise<DataProjectEntity[]> => {
const projects = getCollection<DataProjectEntity>(
this.dataModelsPath,
"projects-v2",
"list.json",
);
const projects = getCollection<DataProjectEntity>(this.dataModelsPath, "projects", "list.json");

if (projects === 404) throw new Error("Projects list not found");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Projects on dzcode.io are found under the folder `./data/models/projects-v2` in [dzcode.io repository](https://github.com/dzcode-io/dzcode.io/tree/main/data/models/projects-v2).
Projects on dzcode.io are found under the folder `./data/models/projects` in [dzcode.io repository](https://github.com/dzcode-io/dzcode.io/tree/main/data/models/projects).

To add new project, named for example: "**My Awesome Project**", simply do the following:

1. [Fork](/Learn/Git_Basics/What_The_Fork) the dzcode.io repository. and clone it to your local machine.

2. Under `data/models/projects-v2`, Create a new folder using **Capital-Snake Case** version of your project title: `My_Awesome_Project`
2. Under `data/models/projects`, Create a new folder using **Capital-Snake Case** version of your project title: `My_Awesome_Project`

3. Under `data/models/projects-v2/My_Awesome_Project`, Add new file `info.json` and write the basic information about your project (name and list of repositories), like below:
3. Under `data/models/projects/My_Awesome_Project`, Add new file `info.json` and write the basic information about your project (name and list of repositories), like below:

```json
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7eb59eb

Please sign in to comment.