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

Folder Structure Conventions & New "subdomain.json" Format #447

Open
fransallen opened this issue Sep 2, 2022 · 5 comments
Open

Folder Structure Conventions & New "subdomain.json" Format #447

fransallen opened this issue Sep 2, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@fransallen
Copy link
Member

fransallen commented Sep 2, 2022

This issue describes thedev.id's folder structure and contents in the "subdomain.json" file.

.
├── .github/
├── .gitignore
├── README.md
├── _headers
├── index.html
├── package.json
└── subdomains/
        ├── david.json
        ├── hadyan.json
        └── wildan.json

Content for david.json:

{
  "name*": "The name of the personal site",
  "description*": "Short description for the site.",
  "owner*": {
    "username*": "lakuapik",
    "email*": "[email protected]",
    "bio": "David is Lorem, ipsum dolor sit amet consectetur adipisicing elit. Tempora, qui beatae dicta vel, eaque, harum ex cumque quo dolore quam placeat asperiores. Ab quos laudantium in, reprehenderit facilis numquam consectetur.",
    "social": {
      "twitter": "lakuapik"
    }
  },
  "repo*": "https://github.com/lakuapik/david.thedev.id",
  "records*": {
    "CNAME*": "lakuapik.github.io"
  }
}

Note: keys marked with * are required.

@lakuapik
Copy link
Member

lakuapik commented Sep 2, 2022

@fransallen is the json key all required? what if there are some people who dont put their portfolio in a public repo? could you please mark the required key with a * symbol?

{
  "name*": "Bla bla bla"
}

@fransallen
Copy link
Member Author

Not all are required, but we can write documentation for which keys are required. I'm still not sure if using * (the wildcard sign) is common practice as we'll also be using it for DNS Synchronization. We should keep the JSON file clean.

@lakuapik
Copy link
Member

lakuapik commented Sep 2, 2022

i mean, the * will not be added to the key, just note for us 😅

@fransallen
Copy link
Member Author

Oops, updated! 😆

@fransallen fransallen added the enhancement New feature or request label Sep 2, 2022
@fransallen fransallen changed the title Folder Structure Conventions Folder Structure Conventions & New "subdomain.json" Format Sep 2, 2022
@thedev-id thedev-id deleted a comment Dec 12, 2022
@wdhdev
Copy link

wdhdev commented Dec 16, 2022

I was thinking maybe the folder is called domains and this would be the format:

{
  "repo": "https://github.com/lakuapik/david.thedev.id",
  "description": "Short description for the site.",
  "owner": {
    "username": "lakuapik",
    "email": "[email protected]"
  },
  "records": {
    "CNAME": "lakuapik.github.io"
  }
}

And also offer A and TXT records.

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

No branches or pull requests

3 participants