-
Notifications
You must be signed in to change notification settings - Fork 23
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
Opcode #135 / opcode #335 #130
Conversation
Please use the relurl function as discussed, so this will work properly also for @burner1024's projects. |
Isn't that only for |
To work in opcodes, relurl.html should also be included in op-list.html. |
Is everything OK, now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include before the for loop, otherwise it'll be included hundreds of times
Fixed. |
It's fine if @burner1024 doesn't care, otherwise just adding the include doesn't change anything. |
At the moment opcode descriptions are not being imported. But they likely will be sooner or later. I think it makes sense to have a consistent policy for links, applying relurl everywhere. |
I agree, that's why I proposed to use it. @4Luke4 you can search for relurl to see how it's used as a liquid filter. |
Will do. |
Sorry, but the consensus above was to fix this now, not later, so we can get farther incrementally. |
@burner1024 |
I think what @lynxlynxlynx means is that urls in this pull should be changed to follow the new scheme (with relurl filter.) |
Urls now follow the new scheme (with `relurl` filter).
Could you please check if everything is fine now...? |
<a name="class" href="{{ '#op337' | prepend: relurl }}">opcode #337</a> "class" is just an example, for when you do want to add a name to the link, and markdown doesn't support it, and then we use html intead. You don't need to add it to every link. <a href="#op337">opcode #337</a> <a name="class" href="{{ '../file_formats/ie_formats/eff_v2.htm' | prepend: relurl }}">EFF</a> All urls should start from root of the site. No <a href="{{ '/file_formats/ie_formats/eff_v2.htm' | prepend: relurl }}">EFF</a> |
This leads to an error
|
Where? Push to your branch, point the exact link, I'll check. |
Maybe a missing include? |
Where exactly...? |
Is there an |
Done. The url |
There is one in |
Yes, it's not working. Apparently collection |
Ok, so what now...? |
I quickly tried liquify/markdownify filters, didn't help, but maybe @lynxlynxlynx has a better idea. If eventually opcodes are going to be moved to |
Put the include in the opcode file itself, then it should work. |
Right, except there's hundreds of them, not a very clean solution. |
Most don't link anywhere, so it's fine in the interim. Easy to automatically remove when a better solution is available too. |
Done. @burner1024 |
op335 still needs updating |
Done. |
Thanks and thanks for the patience! |
|
True, but then |
|
Added some rudimentary info about how to bypass the bug affecting these two opcodes.