codehike icon indicating copy to clipboard operation
codehike copied to clipboard

Allow import of external files with from-annotation

Open RichardJECooke opened this issue 2 years ago • 1 comments

I read https://codehike.org/docs/annotations#from-annotation and then tried:

'''js React.js
# from https://raw.githubusercontent.com/facebook/react/main/scripts/flow/runFlow.js
'''

but it does nothing. Being able to link to external code files, rather than copying and pasting code into all our documentation is important. Especially since code changes frequently.

Is there any workaround, like writing a short component in Nextra to import the code then pass it to Code Hike, possible please?

RichardJECooke avatar Oct 23 '23 13:10 RichardJECooke