Repository navigation
docs: fix typos, spacing and collapsible code blocks (stages 0–16, guides) - #37
Open
Sahil-Muhammed wants to merge 2 commits into
Open
Sahil-Muhammed wants to merge 2 commits into
Sahil-Muhammed wants to merge 2 commits into
Conversation
👷 Deploy request for expserver-docs pending review.Visit the deploys page to approve it
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes typos, grammar and spacing in the roadmap (Phase 0 to Stage 16) and the guides, and fixes nine code blocks in Stage 10 that were showing expanded instead of collapsed ("click to show").
1. Word and spelling fixes
roadmap/phase-0/index.mdroadmap/phase-0/stage-1.mdroadmap/phase-0/stage-1.mdmemsetfunction is initializememsetfunction initializesroadmap/phase-0/stage-2.mdroadmap/phase-0/stage-3.mdroadmap/phase-0/stage-4.mdroadmap/phase-0/stage-4.mdroadmap/phase-0/stage-4.mdroadmap/phase-0/stage-5.mdroadmap/phase-0/stage-5.mdroadmap/phase-0/stage-5.mdroadmap/phase-0/stage-5.mdroadmap/phase-0/stage-5.mdserver_create()create_server()(the function defined earlier in the stage)roadmap/phase-1/stage-7.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-12.mdroadmap/phase-2/stage-14.mdroadmap/phase-2/stage-14.mdroadmap/phase-2/stage-14.mdroadmap/phase-2/stage-14.mdroadmap/phase-2/stage-15.mdroadmap/phase-2/stage-15.mdroadmap/phase-2/stage-16.mdreq_pathreq_pathroadmap/phase-2/stage-16.mdroadmap/phase-2/stage-16.mdguides/resources/architecture.mdguides/resources/blocking-and-non-blocking-sockets.mdguides/resources/blocking-and-non-blocking-sockets.mdguides/resources/coding-conventions.mdxps_listener_destory(...)xps_listener_destroy(...)guides/resources/linux-epoll.mdguides/resources/process-and-threads.mdguides/resources/tcp-socket-programming.mdguides/resources/tcp-socket-programming.mdguides/resources/udp-socket-programming.mdguides/resources/udp-socket-programming.mdsendto()are system call are:sendto()system call are:tester/installation/backend.md2. Spacing and punctuation fixes
roadmap/phase-0/stage-2.mdroadmap/phase-1/stage-9.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-10.mdroadmap/phase-1/stage-12.mdroadmap/phase-1/stage-13.mdsession->client_source...client->sink).session->client_source...client->sink).roadmap/phase-1/stage-13.mdclient->source...session->client_sink).client->source...session->client_sink).roadmap/phase-1/stage-13.mdsession->from_client_buff.session->from_client_buff.roadmap/phase-1/stage-13.mdfunc(): (12 function bullets, andflow :×3)func(): andflow:roadmap/phase-2/stage-14.mdroadmap/phase-2/stage-15.mdroadmap/phase-2/stage-15.mdroadmap/phase-2/stage-16.mdroadmap/phase-2/stage-16.mdfunc: (8 function bullets, andCliargs :)func: andCliargs:guides/resources/tcp-ip-model.mdguides/resources/tcp-ip-model.mdguides/resources/tcp-socket-programming.md3. Formatting fixes
Stage 10: code blocks shown expanded instead of collapsed
In
roadmap/phase-1/stage-10.md, nine::: detailsblocks were indented by two spaces directly after a list item, while their code fence and closing:::were at column 0. The indentation made the container start inside the list item. The unindented code fence then ended the list item, which closed the container empty. So the code was rendered as plain, always-visible text, and the closing:::was left with nothing to close.Fix: removed the two leading spaces and added a blank line before each
::: details, matching the blocks that already worked in the same file (e.g.xps_pipe.h,xps_pipe_is_readable()).Affected blocks:
xps_pipe_create(),xps_pipe_destroy()xps_pipe_attach_source(),xps_pipe_attach_sink(),xps_pipe_detach_source(),xps_pipe_detach_sink()xps_pipe_source_create(),xps_pipe_source_destroy(),xps_pipe_source_write()xps_connection.c: modified functionsxps_connection.c: added functionsxps_loop.c:handle_pipes(),filter_nulls(),handle_epoll_events(),xps_loop_run()I checked this locally with
npm run dev: all nine now collapse, and match the behaviour of the other stages. The "NOTE" box, the milestone and the "AUTOMATED TESTS" box after them render normally.Note on the commits: the first commit (
15f5873) also removed the closing:::of thehandle_pipes()block by mistake. That left the block unclosed, so it swallowed the rest of the page. The second commit (b03530a) puts it back. Taken together, the only change tostage-10.md's:::markers is the nine opening lines; no closing:::is added or removed.Stage 12:
SEEK_END/ return value on one lineIn
roadmap/phase-1/stage-12.md, theSEEK_ENDdescription and**Returns**: 0 on success, or -1 on error.were rendered as one line. They are now on separate lines.