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

Protocol description as a PDF #12

Open
petri opened this issue Sep 29, 2020 · 8 comments
Open

Protocol description as a PDF #12

petri opened this issue Sep 29, 2020 · 8 comments

Comments

@petri
Copy link
Member

petri commented Sep 29, 2020

Attached. Add to the web page?

Beanstalkd.pdf

@ysmolski
Copy link
Member

@petri thank you for doing this. By any chance, was this conversion automatic? I would like to understand how could we maintain (edit) the pdf in the case when we change protocol.

@petri
Copy link
Member Author

petri commented Sep 30, 2020

No, fully manual. The master source is Apple Pages. Besides uploading that, I could generate an EPub version as well, and whatever else it exports. I just wanted to try creating a full technical document in Pages and thought I'd contribute this. But apart from easy PDF & EPub creation, it's not that great for other than simple things.

I'd guess it'd be best to just improve the protocol description so it uses conformant ReStructuredText or MarkDown. Could then use Sphinx or MkDocs, or whatever tool. Greenstalk has already some Sphinx docs, and some other clients maybe as well.

@kr
Copy link
Member

kr commented Sep 30, 2020

At the risk of asking a stupid question, what are the drawbacks of using ASCII for this document, and what are the benefits of producing a PDF? Do those benefits outweigh the cost of adding the necessary additional tools as beanstalkd build dependencies?

@petri
Copy link
Member Author

petri commented Oct 1, 2020

Cost/benefit questions are always relevant I guess. But for the benefit of the project, perhaps it's more useful to ask:

  1. could and should the developer (protocol) docs be improved?
  2. if so, what's the best way to have some sufficiently improved outcome?

I guess for an open source project, 1) is always a yes if there's someone willing to do it?

As for 2), besides improving the content itself, there's many ways to manage the docs, and not all of those require adding tools to core beanstalkd build process.

By the way, might be a good idea to explicitly mention somewhere that the protocol doc is written in asciidoc or syntax very near it. Renders nice with https://asciidoclive.com . Or is that documented somewhere already?

@kr
Copy link
Member

kr commented Oct 5, 2020

I guess for an open source project, 1) is always a yes if there's someone willing to do it?

In my experience it is not always true that someone will have the time and willingness to do extra work.

Don't forget, adding more tool dependencies incurs ongoing maintenance burden, it's not just a one-time cost.

As for 2), besides improving the content itself, I think it's safe to say that an industry-standard source format […]

If standardization is the main criterion for choosing a documentation format, I would argue that ascii is more established as a standard than ReST or markdown (or pdf, for that matter).

@kr
Copy link
Member

kr commented Oct 5, 2020

By the way, I'm not trying to be dismissive, I also really do appreciate the work you already put in to this.

I think pdf is a reasonable format, and I think ascii is too. Having already chosen one reasonable format, some hysteresis is appropriate. It's not enough to say "this other format is reasonable too" or even "this other format is marginally better". The new format needs to be significantly better and there should be evidence that the additional benefit is worth the additional cost.

@petri
Copy link
Member Author

petri commented Oct 6, 2020

Just to be clear, my intent, when posting this issue, was not to sell some idea of e.g. dropping ASCII protocol doc in favor of PDF.

I shared the PDF version of the doc I had created because it is, to me, more useful than the original source, and wanted to offer others the possibility of gaining the same benefit. That's all. If some do, great, if not, that's fine.

That being the case, I was not considering any long-term source format, build or maintenance implications. While I offered here, when asked, some suggestions that relate to those, I don't have time available to me to convince anyone or build evidence for some particular or possible choices about them. Nor do I really want to. Not meaning to be dismissive of any need or requirement that any individual, the project or the maintainer community might have for those. Thus also accepting the possibility of the doc then just ending up buried here.

If there will be any need for the original document source version, let me know and I'll be happy to submit it.

@alrik11es
Copy link

I am in favor of the proposed PDF file format. Additionally, I believe that the original file could be further enhanced with the implementation of markdown styling. Overall, I am supportive of multiple formats, as it allows for maximum accessibility and inclusivity for all audiences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants