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

Make sure live docs have a '.html' extension #166

Merged
merged 3 commits into from Aug 12, 2019
Merged

Make sure live docs have a '.html' extension #166

merged 3 commits into from Aug 12, 2019

Conversation

@raboof
Copy link
Owner

raboof commented Aug 6, 2019

Not needed for firefox at least, but neater

Not needed for firefox at least, but neater
@@ -99,7 +99,7 @@ function ioncore.tagged_attach(reg, param)
end

function ioncore.show_live_docs(frame)
local filename = os.tmpname()
local filename = os.tmpname() .. ".html"

This comment has been minimized.

@wilhelmy

wilhelmy Aug 6, 2019

Collaborator

A problem here is that at least with Lua 5.3, os.tmpname() also creates the file instead of just returning a unique name (I guess because otherwise it can't be guaranteed that the filename is unique).

This comment has been minimized.

@knixeur

knixeur Aug 6, 2019

Collaborator

It actually depends on the OS implementation. The alternative is to include posix Lua module but that would add a requirement just for this. I think 2 temp files won't hurt very much, it's not a functionality that will be run that often I think

This comment has been minimized.

@wilhelmy

wilhelmy Aug 6, 2019

Collaborator

I propose using local filename = ioncore.tempdir().."keyboard.html" from my upcoming pull request.

wilhelmy added 2 commits Aug 10, 2019
@raboof
Copy link
Owner Author

raboof commented Aug 12, 2019

Thanks!

@raboof raboof merged commit a1b5df3 into master Aug 12, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@raboof raboof deleted the liveDocsExtension branch Aug 12, 2019
@raboof raboof added the docs label Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.