flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.8k stars 3.21k forks source link

Add support for editable placeholders #10936

Open johnpryan opened 2 months ago

johnpryan commented 2 months ago

Describe the problem

Some pages, like the Swift package manager - for plugin authors page, has a lot of code that needs to be copy pasted and modified to replace a string (like "plugin_name") with something more specific (the name of your plugin).

Expected fix

It would be great if we could add support for "placeholders", similar to how the Google Cloud documentation lets you change the project name or other variables as you're reading, so that any snippets you copy-paste are correct.

For example, the the Hosting a static website GCP documentation has two variables, BUCKET_NAME and PROJECT_ID that can be edited:

Screenshot 2024-07-23 at 10 42 56 AM

On which platform(s) did you experience this issue?

macOS

Additional context

No response

sfshaza2 commented 2 months ago

That is a cool feature.