Skip to content

📝 improve contributing documentation - #2104

Merged
AucaCoyan merged 20 commits into
espanso:devfrom
AucaCoyan:upgrade-contributing
Jan 20, 2025
Merged

AucaCoyan merged 20 commits into
espanso:devfrom
AucaCoyan:upgrade-contributing

Conversation

@AucaCoyan

Copy link
Copy Markdown
Collaborator

We have nowadays two documents to guide new and current contributors how to help the project, Contributing.md and Compilation.md.
This PR has the objective to merge those two in one single file

(I mistakenly closed #2027 )

@AucaCoyan
AucaCoyan marked this pull request as ready for review October 20, 2024 12:37
@smeech

smeech commented Oct 26, 2024

Copy link
Copy Markdown
Collaborator

Does this affect the compilation instructions in the docs? Should we be maintaining both or does that risk discrepancies arising between them?

@AucaCoyan

AucaCoyan commented Oct 26, 2024 •

Copy link
Copy Markdown
Collaborator Author

My idea is to move all the Compilation.md into Contributing.md, and only have in Compilation a link to the corresponding section of contributing (just if somebody clicks on a old link going to that file).
like this.

This way we have all the info for contributing, and compilation under a better context

@smeech

smeech commented Oct 27, 2024

Copy link
Copy Markdown
Collaborator

Yes, I think that's reasonable.

Perhaps we also need links from the docs, for those looking for additional information. Currently, the Windows installation doesn't even mention compilation. On the other hand, there's an argument for not overloading the user documentation, and just leave the GitHub pages for enthusiasts to find.

@AucaCoyan

AucaCoyan commented Nov 13, 2024 •

Copy link
Copy Markdown
Collaborator Author

After some thought I think it would be best to open a section in the documentation to developers.

On a first glance, I thought that it would be easier to have not only the compilation instructions but everything a contributor needs all in one markdown file, under the espanso repo. When I finished the document I realized it's a pretty long script.

It's an extra effort to have a documentation in a browser, but I think it's nearly impossible to develop espanso without reading the documentation at all

So we can complete the two objectives in one if we add a development section in the docs. What do you think?

@smeech

smeech commented Nov 13, 2024

Copy link
Copy Markdown
Collaborator

I think my view above is unchanged. The docs cater to users, the github readme, to developers. They're two different audiences.

@AucaCoyan

AucaCoyan commented Jan 1, 2025 •

Copy link
Copy Markdown
Collaborator Author

I still stand on the documentation page for everyone, both users and developers (under different sections for each type of user, of course).

Nonetheless I understand the difference between a "simple" user documentation and the implementation specifications. In most scenarios this is usually a talk between two developers. I gave it some thought and I think I can be okay with a mdbook like cxx does. It's way easier to fix than re-deploying the espanso.org site every time we expand on internal documentation (with the network roundtrip traffic for everyone who wants to contribute and more).

I have to refactor a bunch of code then 😁

@AucaCoyan
AucaCoyan marked this pull request as draft January 1, 2025 10:58
@AucaCoyan
AucaCoyan requested a review from smeech January 1, 2025 10:58
Comment thread CONTRIBUTING.md Resolved

@smeech smeech left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That all makes sense.

I think the Contents section should be expanded at first glance - it's short, and I overlooked it on first read-through, and the PR section doesn't easily follow the Compilation section without it.

Once merged, I think I should link to the document from the docs, although it would require two additions to https://espanso.org/docs/install/linux/, plus new mentions in https://espanso.org/docs/install/mac/ and https://espanso.org/docs/install/win/.

@AucaCoyan

AucaCoyan commented Jan 1, 2025 •

Copy link
Copy Markdown
Collaborator Author

Yup. This new form of documentation triggers a new way of thinking: What do we write for everyone (users of the app) and what is considered "technical" documentation?
I believe how to install the app from source should be on espanso.org, and mentioned in the mdbook with a hyperlink.
Specifications like windows-portable, non-GUI and other variations live in the dev-docs, as the user probably won't need that level of specific instructions. The shorter the better!

@AucaCoyan
AucaCoyan marked this pull request as ready for review January 17, 2025 13:04
@AucaCoyan
AucaCoyan requested a review from smeech January 17, 2025 13:04
@AucaCoyan

Copy link
Copy Markdown
Collaborator Author

It's ready to review!

Minor spelling corrections

@smeech smeech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That all makes sense. I haven't attempted to "buiild the book", however.

I have corrected a couple of typos in https://github.com/espanso/espanso/pull/2104/files#diff-5eee5bef90d4b33e6fbfaf7d89e3f9fa91fb3fe909211f2f2043891c23f2b351 and couldn't resist the temptation to capitalise the proper noun "Rust" although I see that puts me out of line with the occurrences in other files.

@AucaCoyan

Copy link
Copy Markdown
Collaborator Author

Haha, don't worry! I checked and there are no missing lowercase rust words (excluding the commandline lines)

@AucaCoyan

Copy link
Copy Markdown
Collaborator Author

@smeech Whenever you say, I'll land this PR 🙌🏼

@smeech

smeech commented Jan 20, 2025

Copy link
Copy Markdown
Collaborator

@smeech Whenever you say, I'll land this PR 🙌🏼

Yes, go for it.

@AucaCoyan
AucaCoyan merged commit 5aa892d into espanso:dev Jan 20, 2025
@AucaCoyan
AucaCoyan deleted the upgrade-contributing branch January 20, 2025 10:31
@smeech

smeech commented Jan 20, 2025 •

Copy link
Copy Markdown
Collaborator

Where's ./theme?
And should the two instances of "(more info here)" link to something?

@AucaCoyan

Copy link
Copy Markdown
Collaborator Author

Whoops, those are things I did in the process, and decided to roll back after I saw how little use for us were.

This is like when you print your final project at school and you realize you made a typo in the front page 🤣 .
I'll fix it quickly

@n8henrie n8henrie mentioned this pull request May 1, 2025
sboldt1978 pushed a commit to sboldt1978/espanso that referenced this pull request Feb 11, 2026
* 📝 update documentation

* ✨ introduce clang-tidy and clang-format

* 🔥 remove clangs

* 🚚 leave a note

* ✨ feature developer docs in `mdbook`

* 📝 add cargo outdated

* 👷 exclude the path `docs/` from the CI

* 📝 expand the README of docs

* 📝 move contributing into a splitted documentation

* 📝 restore dev cookbok

* 🔥 remove mdbook-pagetoc

* 🚚 leave a new note to the docs/ folder

* 🍱 add picture of the espanso dev docs

* 🚨 fix clippy lints

* 🚨 fix the unlock clippy lint

* Update ch01-general-guidelines.md

Minor spelling corrections

* ✏️ tiny rust for big Rust

---------
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

Successfully merging this pull request may close these issues.

2 participants