Creating an automatic portfolio based on Github profile
Creating an automatic portfolio based on Github profile
Automatic portfolio creation based on Github profile.
Example - Default theme: Github / Website
profile.yml for autodeploy | [Actions tab -> profile.yml]ACCESS_TOKEN | [Settings -> Secret]config.ts file in root directory with your data and push changesgh-pages branch | [Settings -> Pages -> Source]Not all possible data are listed here, you can find more in IConfig interface. Also use typehint hints from your IDE.
All images must be loaded via callback, example:
image: () => require('./public/my-image.png')If the image is a link from the Internet, then simply:
image: 'https://example.com/image.png'Example
…Filtering allows you to filter data when displaying information on the site.
Output repositories that are not forks AND number of stars greater than 10.
[
[
{ attr: 'fork', values: false },
{ attr: 'stargazers_count', values: 10, options: { sign: '>' } },
]
]Output repositories that are not forks OR number of stars less than 10.
[
[
{ attr: 'fork', values: false },
],
[
{ attr: 'stargazers_count', values: 10, options: { sign: '' } },
{ attr: 'language', values: 'JavaScript', revert: true },
],
[
{ attr: 'language', values: 'TypeScript' },
],
]Sorting allows you to sort data while displaying information on the site.
Sort repositories by creation date.
[
{ attr: 'created_at', sortByDesc: true },
]Sort the repositories first by the number of stars, and then by creation date.
[
{ attr: 'created_at', sortByDesc: true },
{ attr: 'stargazers_count', sortByDesc: true },
]For Github, a token is required to get information about the organization's repositories.
All data is stored in the ./data folder.
# Fetch Github data
$ yarn github:profile ACCESS_TOKEN
$ yarn github:repositories ACCESS_TOKENPlease make sure to read the Contributing Guide before making a pull request.
Detailed changes for each release are documented in the CHANGELOG.md.
No open issues yet, or sync has not completed.