open-sauced / intro

Empowering Your Open Source Journey: From First Contribution to Project Leadership
https://opensauced.pizza/learn
Other
503 stars 96 forks source link

feat: adding edit this page buttons #46

Closed CBID2 closed 8 months ago

CBID2 commented 10 months ago

Type of feature

🍕 Feature

Current behavior

There’s no editing buttons.

Suggested solution

I think we should add one. To stay consistent with the other repos.

edit this page

Additional context

No response

Code of Conduct

Contributing Docs

CBID2 commented 10 months ago

@open-sauced/triage, what do you think?

takanome-dev commented 10 months ago

@CBID2 what do you mean? I can see the edit button in the docs :thinking:

CBID2 commented 10 months ago

@CBID2 what do you mean? I can see the edit button in the docs :thinking:

Ooh that was meant for the intro course repo 🤦🏾‍♀️

CBID2 commented 10 months ago

@CBID2 what do you mean? I can see the edit button in the docs :thinking:

Is there a way you can transfer this issue to that repo @takanome-dev?

takanome-dev commented 10 months ago

Is there a way you can transfer this issue to that repo @takanome-dev?

Nope, maybe @bdougie or @BekahHW can do it

BekahHW commented 10 months ago

@CBID2 the docs repo has it because we're using docsify. Because the intro course is just markdown, we'd have to hack it together as a link.

CBID2 commented 10 months ago

@CBID2 the docs repo has it because we're using docsify. Because the intro course is just markdown, we'd have to hack it together as a link.

Ooh ok @BekahHW.

CBID2 commented 10 months ago

Hi @BekahHW! :) I was going to do a PR for this.

BekahHW commented 10 months ago

@CBID2 can you recreate the issue on the intro repository?

CBID2 commented 10 months ago

@CBID2 can you recreate the issue on the intro repository?

Hey @BekahHW. I think you can transfer it to that repository by clicking on Transfer issue

BekahHW commented 10 months ago

I can't from the mobile app, so it'll have to wait until I have my computer on.

CBID2 commented 10 months ago

Thanks @BekahHW! :)

Ganesh1521 commented 9 months ago

Hi, I hope the following code helps you in website

About Us

This is some content about your website.

edit.js to handle javascript functionality

document.addEventListener('DOMContentLoaded', function() { const editButton = document.getElementById('edit-button');

const editURL = 'https://your-cms-url.com/edit-page';

editButton.addEventListener('click', function() {

    window.location.href = editURL;
});

});

CBID2 commented 9 months ago

Hi, I hope the following code helps you in website

About Us

This is some content about your website.

Edit This Page edit.js to handle javascript functionality

document.addEventListener('DOMContentLoaded', function() { const editButton = document.getElementById('edit-button');

const editURL = 'https://your-cms-url.com/edit-page';

editButton.addEventListener('click', function() {

    window.location.href = editURL;
});

});

Great thanks @Ganesh1521! :)