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

Allow rewriting of relative links as an export option #1604

Closed
tommoor opened this issue Oct 24, 2020 · 2 comments
Closed

Allow rewriting of relative links as an export option #1604

tommoor opened this issue Oct 24, 2020 · 2 comments
Labels
enhancement It would be nice if… help wanted Core team has not prioritized, but others are welcome to tackle stale

Comments

@tommoor
Copy link
Member

tommoor commented Oct 24, 2020

When all the documents are exported, the markdown link in baz to bar is something like /doc/bar-456, which only works in Outline. What's the easiest way to convert the /doc/bar-456 to point to the file in the exported folder?

Programmatically I can go in and create a map containing files and file path and search through all the documents and do a search and replace. Should this actually be part of the export functionality?

See discussion: #1603

@tommoor tommoor added the enhancement It would be nice if… label Oct 24, 2020
@tommoor
Copy link
Member Author

tommoor commented Oct 24, 2020

In terms of implementation I'd add an additional parameter to the export endpoints rewriteLinks (or similar) that modifies the content of each doc before it's written to disk. Once this is in place we can consider how to expose it via the UI.

@tommoor tommoor added the help wanted Core team has not prioritized, but others are welcome to tackle label Oct 27, 2020
@stale
Copy link

stale bot commented Apr 9, 2021

Hey! The issue has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. Please reply here if you wish for the issue to be kept open.

@stale stale bot added the stale label Apr 9, 2021
@stale stale bot closed this as completed Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement It would be nice if… help wanted Core team has not prioritized, but others are welcome to tackle stale
Projects
None yet
Development

No branches or pull requests

1 participant