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

Change label on Edit this Page button #6091

Open
sammachin opened this issue Feb 20, 2025 · 3 comments
Open

Change label on Edit this Page button #6091

sammachin opened this issue Feb 20, 2025 · 3 comments
Labels
feature/customization Tailor the output to your liking product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@sammachin
Copy link

sammachin commented Feb 20, 2025

How important is this?

P2 - Medium (Would be helpful)

What's the feature?

I added the edit-this-page feature as per https://buildwithfern.com/learn/docs/getting-started/global-configuration#github-configuration

I'd like to change the label on that button to say something like "Improve this page: rather than edit,
Ideally this would be implemented as a config param for something like lable under the edit-this-page config

Are you interested in contributing this feature?

Yes

@dannysheridan dannysheridan added product/docs Fern Docs which builds and hosts a developer documentation site feature/customization Tailor the output to your liking labels Feb 20, 2025
@dannysheridan
Copy link
Member

@sammachin want to propose how the config should read?

As a workaround, I suspect you'd be able to override this using Custom CSS: https://buildwithfern.com/learn/docs/building-and-customizing-your-docs/custom-css-global-js#custom-css

@sammachin
Copy link
Author

I'd just go with something like:

instances:
  - url: plantstore.docs.buildwithfern.com
    edit-this-page:
      label: Improve this page
      github: 
        owner: fern
        repo: plant-store-docs
        branch: main

@sammachin
Copy link
Author

I don't think custom css would work as the button dones't have any unique ID or class?
and I'm not quite sure you can replace the content in a span anyway, looking at the css content property

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/customization Tailor the output to your liking product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

2 participants