Skip to content

Commit f3d61a7

Browse files
authored
fixing issue 212 - Merge 'Integration' section in the main bookmarks doc (#248)
1 parent ff3317e commit f3d61a7

File tree

8 files changed

+92
-114
lines changed

8 files changed

+92
-114
lines changed

docs/community.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 110
2+
sidebar_position: 100
33
---
44
# Community
55
Welcome to the daily.dev community! Join us on our various social media channels to stay updated with the latest news, events, educational content, giveaways, and more related to daily.dev.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "For content creators",
3-
"position": 90
3+
"position": 80
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "For OSS contributors",
3-
"position": 100
3+
"position": 90
44
}

docs/integrations/_category_.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/integrations/sharing-bookmarks.md

Lines changed: 0 additions & 92 deletions
This file was deleted.

docs/key-features/bookmarks.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,90 @@ With these options, saving posts to bookmarks in daily.dev is quick and easy. On
3030
## Sync bookmarks across devices and browsers
3131

3232
To sync your bookmarks across devices and browsers, all you need to do is log in with the same account on every device/browser. This way, you can access your bookmarks from any device or browser where you are logged in, making it convenient to keep your reading list consistent and updated.
33+
34+
## GitHub
35+
36+
A very interesting feature of shareable bookmarks is that of being able to integrate, in real time, the list of bookmarks on your GitHub profile.
37+
38+
In the image below the final result of how they will be show.
39+
40+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub12.png)
41+
42+
### GitHub Integration procedure
43+
44+
To integrate your Bookmarks with GitHub, you need to follow the steps below:
45+
46+
- In the bookmarks section, click on "Share Bookmarks"
47+
48+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub1.png)
49+
50+
- Set it to public mode, then copy the link below by clicking on the "Copy link" icon next to it.
51+
52+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub2.png)
53+
54+
- On your GitHub profile, create a repository with the same name of your GitHub account name
55+
- Create a folder called ".github"
56+
57+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub3.png)
58+
59+
- Inside that folder, create a folder called "workflows".
60+
- Click on Add file.
61+
62+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub4.png)
63+
64+
65+
- Inside the workflows folder, create a file called "daily.dev-bookmarks.yml"
66+
67+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub5.png)
68+
69+
70+
- Populate the file with the following content
71+
```
72+
name: daily.dev Bookmarks
73+
on:
74+
schedule:
75+
# Runs every hour
76+
- cron: '0 * * * *'
77+
workflow_dispatch:
78+
79+
jobs:
80+
daily-dev-bookmarks:
81+
name: Update this repo's README with latest bookmarks from daily.dev
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/checkout@v2
85+
- uses: gautamkrishnar/blog-post-workflow@master
86+
with:
87+
comment_tag_name: "daily.dev BOOKMARKS"
88+
feed_list: "<YOUR BOOKMARKS RSS FEED LINK HERE>"
89+
```
90+
**Important:** You need to replace the `<YOUR BOOKMARKS RSS FEED LINK HERE>` with your own RSS feed.
91+
92+
- Commit the daily.dev-bookmarks.yml file (the file should look like this).
93+
94+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub6.png)
95+
96+
- Open the Readme.md file in your Profile repository (the repository with the same name as your GitHub account name)
97+
98+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub7.png)
99+
100+
- add these lines at the end of the file
101+
```
102+
<!-- daily.dev BOOKMARKS:START -->
103+
<!-- daily.dev BOOKMARKS:END -->
104+
```
105+
- Commit the Readme.md file
106+
- Check if the README file has been updated
107+
108+
- Run the workflow `daily-dev-bookmarks`
109+
110+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub9.png)
111+
112+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub11.png)
113+
114+
115+
The GitHub action is planned to run every work.This can be changed by adjusting the cron part in the daily.dev-bookmarks.yml file.
116+
117+
![](https://daily-now-res.cloudinary.com/image/upload/v1644219700/docs/bookmarksGithub12.png)
118+
119+
Well done! You have successfully integrated your bookmarks with GitHub.

src/css/custom.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,17 +523,13 @@ html[data-theme='light'] .menu__link:before {
523523
}
524524

525525
.theme-doc-sidebar-menu li:nth-child(9) .menu__link:before {
526-
background: url('../img/menu/integration.svg');
527-
}
528-
529-
.theme-doc-sidebar-menu li:nth-child(10) .menu__link:before {
530526
background: url('../img/menu/content-creator.svg');
531527
}
532528

533-
.theme-doc-sidebar-menu li:nth-child(11) .menu__link:before {
529+
.theme-doc-sidebar-menu li:nth-child(10) .menu__link:before {
534530
background: url('../img/menu/oss-contributors.svg');
535531
}
536-
.theme-doc-sidebar-menu li:nth-child(12) .menu__link:before {
532+
.theme-doc-sidebar-menu li:nth-child(11) .menu__link:before {
537533
background: url('../img/menu/community.svg');
538534
}
539535

src/img/menu/integration.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)