Merge pull request #257 from mochi/fix-edoc

Fix rebar edoc and test in CI
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ced0e12..6005c40 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,15 +15,16 @@
         os:
           - ubuntu-latest
         otp:
-          - "25.1.1"
-          - "24.3.4.0"
-          - "23.3.4.14"
+          - "25.3.0.0"
+          - "24.3.4.10"
+          - "23.3.4.18"
           - "22.3.4.26"
           - "21.3.8.24"
           - "20.3.8.26"
           - "19.3.6.13"
           - "18.3.4.11"
     steps:
-      - uses: actions/checkout@v2.3.2
+      - uses: actions/checkout@v3
       - run: make test
+      - run: make edoc
       - run: REBAR=rebar make test
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 20e5bfa..f155eed 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,9 +9,9 @@
     runs-on: ubuntu-latest
     steps:
       - name: Check out
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
 
       - name: Publish to Hex.pm
-        uses: erlangpack/github-action@v1
+        uses: erlangpack/github-action@v3
         env:
           HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
diff --git a/CHANGES.md b/CHANGES.md
index b14ceec..a5030d9 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,8 @@
+Version 3.1.2 released 2023-04-20
+
+* Fix rebar edoc settings
+  https://github.com/mochi/mochiweb/pull/257
+
 Version 3.1.1 released 2022-10-11
 
 * OTP 25 added to test matrix
diff --git a/erlang_ls.config b/erlang_ls.config
new file mode 100644
index 0000000..ed6b8cb
--- /dev/null
+++ b/erlang_ls.config
@@ -0,0 +1,5 @@
+apps_dirs:
+  - "_build/default/lib/*"
+include_dirs:
+  - "_build/default/lib/*/include"
+  - "include"
diff --git a/rebar.config b/rebar.config
index 07df66e..9aeb771 100644
--- a/rebar.config
+++ b/rebar.config
@@ -5,6 +5,7 @@
             {platform_define, "^21-", otp_21}]}.
 {cover_enabled, true}.
 {eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
+{edoc_opts, [{preprocess, true}]}.
 {dialyzer_opts, [{warnings, [no_return,
                              no_unused,
                              no_improper_lists,
diff --git a/src/mochiweb.app.src b/src/mochiweb.app.src
index a130893..d117a91 100644
--- a/src/mochiweb.app.src
+++ b/src/mochiweb.app.src
@@ -1,7 +1,7 @@
 %% This is generated from src/mochiweb.app.src
 {application, mochiweb,
  [{description, "MochiMedia Web Server"},
-  {vsn, "3.1.1"},
+  {vsn, "3.1.2"},
   {modules, []},
   {registered, []},
   {env, []},