Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Generate the content of the root ecosystem page #2197 #2466

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

NischalPaliwal
Copy link

This is what I tried doing to solve after researching from the web ->
Step 1: Created a data file
I created a new file called matrix-projects.yaml in the data directory. This file will contain the data for the Matrix projects and tools. I added the data manually, but it can also be fetched from an external source. The file contains categories, and within each category, there are projects with their names, descriptions, and URLs.

Step 2: Created a shortcode
I created a new file called matrix-projects.html in the layouts/shortcodes directory. This file contains the template for rendering the Matrix projects and tools. The shortcode uses the data from the matrix-projects.yaml file and loops through each category, displaying the category name, and then loops through each project, displaying the project name, description, and URL.

Step 3: Used the shortcode
I replaced the manual list in the Markdown file with the shortcode {{< matrix-projects >}}. This will render the Matrix projects and tools dynamically from the data file.

Created a data directory ->
Since the data directory is not present by default in the Matrix.org repository, I created a new directory named data in the root of the repository, alongside the content, layouts, and static directories. This is where I stored the matrix-projects.yaml file.

-> I am totally a beginner to this project having a large codebase so if I have produced a wrong solution with wrong approaches to the issue I apologize for that !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant