Skip to content

Commit

Permalink
Merge pull request #5171 from DFHack/revert-5169-myk_docfix
Browse files Browse the repository at this point in the history
Revert temp changes to docs once pygments is fixed
  • Loading branch information
myk002 authored Jan 7, 2025
2 parents c8c9363 + 22da764 commit 58f93c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3702,8 +3702,6 @@ functions. These are invoked just like standard string functions, e.g.::
script-manager
==============

.. highlight:: none

This module contains functions useful for mods that contain DFHack scripts to
retrieve source and state paths. The value to pass as ``mod_id`` must be the
same as the mod ID in the mod's :file:`info.txt` metadata file. The returned
Expand Down Expand Up @@ -3742,8 +3740,6 @@ paths will be relative to the top level game directory and will end in a slash
utils
=====

.. highlight:: lua

* ``utils.compare(a,b)``

Comparator function; returns *-1* if a<b, *1* if a>b, *0* otherwise.
Expand Down
4 changes: 0 additions & 4 deletions docs/guides/modding-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ immensely, and you can always ask for help in the `right places <support>`.
Reading and writing files and other persistent state
----------------------------------------------------

.. highlight:: none

There are several locations and APIs that a mod might need to read or store
data:

Expand All @@ -256,8 +254,6 @@ for reading and writing JSON data. For example::
-- modify state in the config.data table and persist it when it changes with
-- config:write()

.. highlight:: lua

State that should be saved with a world or a specific fort within that world
should use `persistent-api` API. You can attach a state change hook for new
world loaded where you can load the state, which often includes whether the mod
Expand Down

0 comments on commit 58f93c4

Please sign in to comment.