Questions tagged [sections]

697 questions
145
votes
6 answers

Adding a cross-reference to a subheading or anchor in another page

How to insert a cross-reference in a reST/Sphinx page to either a sub-header or anchor in another page in the same documentation set?
Sue Walsh
  • 1,453
  • 2
  • 10
  • 6
54
votes
6 answers

Actually read AppSettings in ConfigureServices phase in ASP.NET Core

I need to setup a few dependencies (services) in the ConfigureServices method in an ASP.NET Core 1.0 web application. The issue is that based on the new JSON configuration I need to setup a service or another. I can't seem to actually read the…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
40
votes
4 answers

How to expand all the subsections on the sidebar toctree in Sphinx?

I was wondering if there is a way to expand all the subsections under the headers that are included in the index.rst file? As an example, here is how it is: Section 1 Section 2 Section 3 And here is how I would like it to be: Section 1 Subsection…
Joe D
  • 401
  • 4
  • 3
38
votes
5 answers

How do I populate two sections in a tableview with two different arrays using swift?

I have two arrays Data1 and Data2 and I want to populate the data within each of these (they contain strings) into a tableview in two different sections. The first section should have a heading "Some Data 1" and the second section should be titled…
Woody
  • 1,677
  • 7
  • 26
  • 32
30
votes
3 answers

Iterate over sections in a config file

I recently got introduced to the library configparser. I would like to be able to check if each section has at least one Boolean value set to 1. For example: [Horizontal_Random_Readout_Size] Small_Readout = 0 Medium_Readout = 0 Large_Readout =…
Marmstrong
  • 1,686
  • 7
  • 30
  • 54
25
votes
3 answers

How to implement RecyclerView with section header depending on category?

I want to implement sections in my list. I have a list of tasks. List has a custom adapter which extends recyclerview swipe adapter as I have implemented swipe gesture to the recyclerview. So now tasks list is shown together with completed and…
user6265109
23
votes
5 answers

Highlight Menu Item when Scrolling Down to Section

I know this question have been asked a million times on this forum, but none of the articles helped me reach a solution. I made a little piece of jquery code that highlights the hash-link when you scroll down to the section with the same id as in…
Jens Kvist
  • 559
  • 2
  • 7
  • 15
21
votes
4 answers

Adding sections, separated by dates, to UITableView in Swift

I'm a complete rookie at Swift and iOS programming so you'll have to forgive the perhaps simple question. I've created a tableView which displays the contents of an array (strings) at the press of a button. Now, I'd like to "group" these strings…
maxpetter
  • 263
  • 1
  • 2
  • 6
19
votes
2 answers

Custom Core Data SectionNameKeyPath

I am new at core data and am trying to figure out how to create a custom sectionNameKeyPath in my NSFetchedResultsController. I have a managed object with an attribute called acctPeriod. It is a NSString. I want to create sections based on the first…
theDVUSone
  • 215
  • 1
  • 2
  • 5
17
votes
2 answers

How can I link to a page section in a sphinx toctree

I have a .. toctree as part of a sphinx page, which includes relative links to other rst files in my package. How can I include a link to a subsection of a given page, rather than the full page itself? I took a stab at .. toctree:: …
Duncan Macleod
  • 1,045
  • 11
  • 21
15
votes
1 answer

How to get rid of zeros in the section numbering in LATEX report document class?

So I'm writing a report using Latex and the document class I am using is report: \documentclass[a4paper]{report} But for some reason the section numbering is written so that it is preceded with "0.", for example it looks like: 0.1 Introduction 0.2…
Statsar
  • 153
  • 1
  • 1
  • 5
14
votes
5 answers

Hide Sphinx subsections from main TOCTree

Is it possible to hide one (or all) subsections present in a RST file from the main TOCTree? Let me describe a little more: index.rst :doc:`Label ` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. toctree:: Label…
user753531
13
votes
2 answers

SimpleCursorAdapter with Sections in Android

Im at a bit of loss on this one on how to produce sections in a ListView when you use both Cursors and a Custom SimpleCursorAdapter. Many of the docs out there reference using getView() etc, or creating several Adapters and adding section…
Simon
  • 1,385
  • 1
  • 11
  • 20
13
votes
1 answer

Custom made sections not appearing with Shopify's new theme editor

With the release of the new theme editor I've been assigned to build a new client's website using Shopify's new theme builder framework. Everything has been going fine except that when I go to create a new 'Section' in the backend it fails to…
Naadei Atafu
  • 133
  • 1
  • 1
  • 4
12
votes
1 answer

Is the ELF .notes section really needed?

On Linux, I'm trying to strip a statically linked ELF file to the bare essentials. When I run: strip --strip-unneeded foo or strip --strip-all foo The resulting file still has a fat .notes section that appears to be full of funky strings. Is the…
srking
  • 4,512
  • 1
  • 30
  • 46
1
2 3
46 47