[devdocsgjs/main: 1461/1867] ocaml: fix module context in entries
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1461/1867] ocaml: fix module context in entries
- Date: Fri, 19 Nov 2021 23:48:04 +0000 (UTC)
commit d03c98e5517e89baef4a35a6dab2c5aa5a8541f9
Author: Simon Legner <Simon Legner gmail com>
Date: Sun Jan 3 14:56:02 2021 +0100
ocaml: fix module context in entries
lib/docs/filters/ocaml/entries.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/ocaml/entries.rb b/lib/docs/filters/ocaml/entries.rb
index ebd3cb27..068faeba 100644
--- a/lib/docs/filters/ocaml/entries.rb
+++ b/lib/docs/filters/ocaml/entries.rb
@@ -35,7 +35,7 @@ module Docs
def additional_entries
entries = []
- module_node = css('h1').at_css('span')
+ module_node = at_css('h1')
css('pre > span[id]').each do |span|
if span['id'].start_with?('VAL')
@@ -49,7 +49,7 @@ module Docs
end
name = span.content
- name += " [#{module_node.content}]" unless module_node.nil?
+ name += " [#{module_node.content}]" if module_node
entries << [name, span['id'], entry_type]
end
entries
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]