Skip to content

Commit

Permalink
docs: create a "How To" section
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Jan 10, 2024
1 parent ab9ed88 commit 5c919d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs/source/howto.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
How To Guides
=============

.. toctree::
:maxdepth: 1

Handle Invalid Data <howto/handle-invalid-data>
Migrate to v1 <howto/migrate-to-v1>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Migrating to v1.0
=================
How To Migrate to v1.0
======================

The most notable change of the ``v1.0`` release of ``pygls`` is the removal of its hand written LSP type and method definitions in favour of relying on the types provided by the `lsprotocol`_ library which are automatically generated from the LSP specification.
As as side effect this has also meant the removal of `pydantic`_ as a dependency, since ``lsprotocol`` uses `attrs`_ and `cattrs`_ for serialisation and validation.
Expand Down
7 changes: 6 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ User Guide
pages/tutorial
pages/user-guide
pages/testing
pages/migrating-to-v1
pages/reference


.. toctree::
:hidden:
:caption: How To

Migrate to v1 <howto/migrate-to-v1>

.. _Language Server Protocol: https://microsoft.github.io/language-server-protocol/specification
.. _Language server: https://langserver.org/
.. _pygls: https://github.com/openlawlibrary/pygls

0 comments on commit 5c919d1

Please sign in to comment.