regolith/htmlbuilder.py
def people(self):
        """Render people, former members, and each person"""
        rc = self.rc
        peeps_dir = os.path.join(self.bldir, 'people')
        former_peeps_dir = os.path.join(self.bldir, 'former')
        os.makedirs(peeps_dir, exist_ok=True)
        os.makedirs(former_peeps_dir, exist_ok=True)
        for p in self.gtx['people']:
            names = frozenset(p.get('aka', []) + [p['name']])
            pubs = filter_publications(
                all_docs_from_collection(rc.client, 'citations'),
                names, reverse=True, bold=False)
            bibfile = make_bibtex_file(pubs, pid=p['_id'],
                                       person_dir=peeps_dir)
            ene = p.get('employment', []) + p.get('education', [])
            ene.sort(key=ene_date_key, reverse=True)
            projs = filter_projects(
                all_docs_from_collection(rc.client, 'projects'), names)
            self.render('person.html',
                        os.path.join('people', p['_id'] + '.html'), p=p,
                        title=p.get('name', ''), pubs=pubs, names=names,
                        bibfile=bibfile,
                        education_and_employment=ene, projects=projs)
        self.render('people.html', os.path.join('people', 'index.html'),
                    title='People')

        self.render('former.html', os.path.join('former', 'index.html'),
                    title='Former Members')
Render people, former members, and each person
Render people, former members, and each person
Render people former members and each person
def people(self):
        rc = self.rc
        peeps_dir = os.path.join(self.bldir, 'people')
        former_peeps_dir = os.path.join(self.bldir, 'former')
        os.makedirs(peeps_dir, exist_ok=True)
        os.makedirs(former_peeps_dir, exist_ok=True)
        for p in self.gtx['people']:
            names = frozenset(p.get('aka', []) + [p['name']])
            pubs = filter_publications(
                all_docs_from_collection(rc.client, 'citations'),
                names, reverse=True, bold=False)
            bibfile = make_bibtex_file(pubs, pid=p['_id'],
                                       person_dir=peeps_dir)
            ene = p.get('employment', []) + p.get('education', [])
            ene.sort(key=ene_date_key, reverse=True)
            projs = filter_projects(
                all_docs_from_collection(rc.client, 'projects'), names)
            self.render('person.html',
                        os.path.join('people', p['_id'] + '.html'), p=p,
                        title=p.get('name', ''), pubs=pubs, names=names,
                        bibfile=bibfile,
                        education_and_employment=ene, projects=projs)
        self.render('people.html', os.path.join('people', 'index.html'),
                    title='People')
        self.render('former.html', os.path.join('former', 'index.html'),
                    title='Former Members')
def people ( self ) : rc = self . rc peeps_dir = os . path . join ( self . bldir , 'people' ) former_peeps_dir = os . path . join ( self . bldir , 'former' ) os . makedirs ( peeps_dir , exist_ok = True ) os . makedirs ( former_peeps_dir , exist_ok = True ) for p in self . gtx [ 'people' ] : names = frozenset ( p . get ( 'aka' , [ ] ) + [ p [ 'name' ] ] ) pubs = filter_publications ( all_docs_from_collection ( rc . client , 'citations' ) , names , reverse = True , bold = False ) bibfile = make_bibtex_file ( pubs , pid = p [ '_id' ] , person_dir = peeps_dir ) ene = p . get ( 'employment' , [ ] ) + p . get ( 'education' , [ ] ) ene . sort ( key = ene_date_key , reverse = True ) projs = filter_projects ( all_docs_from_collection ( rc . client , 'projects' ) , names ) self . render ( 'person.html' , os . path . join ( 'people' , p [ '_id' ] + '.html' ) , p = p , title = p . get ( 'name' , '' ) , pubs = pubs , names = names , bibfile = bibfile , education_and_employment = ene , projects = projs ) self . render ( 'people.html' , os . path . join ( 'people' , 'index.html' ) , title = 'People' ) self . render ( 'former.html' , os . path . join ( 'former' , 'index.html' ) , title = 'Former Members' )
Render people, former members, and each person
Render people former members and each person
"""Render people, former members, and each person"""
self